Skip to content

Commit

Permalink
Fix regex for zoom webinars
Browse files Browse the repository at this point in the history
  • Loading branch information
benbernard committed May 11, 2023
1 parent b000505 commit e0e86ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MeetingBar/MeetingServices.swift
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ func openMeetingURL(_ service: MeetingServices?, _ url: URL, _ browser: Browser?

struct LinksRegex {
let meet = try! NSRegularExpression(pattern: #"https?://meet.google.com/(_meet/)?[a-z-]+"#)
let zoom = try! NSRegularExpression(pattern: #"https?:\/\/(?:[a-zA-Z0-9-.]+)?zoom.(?:us|com.cn)\/(?:my|[a-z])\/[-a-zA-Z0-9()@:%_\+.~#?&=\/]*"#)
let zoom = try! NSRegularExpression(pattern: #"https?:\/\/(?:[a-zA-Z0-9-.]+)?zoom.(?:us|com.cn)\/(?:my|[a-z]|webinar)\/[-a-zA-Z0-9()@:%_\+.~#?&=\/]*"#)
let zoom_native = try! NSRegularExpression(pattern: #"zoommtg://([a-z0-9-.]+)?zoom\.(us|com\.cn)/join[-a-zA-Z0-9()@:%_\+.~#?&=\/]*"#)
let teams = try! NSRegularExpression(pattern: #"https?://teams\.microsoft\.com/l/meetup-join/[a-zA-Z0-9_%\/=\-\+\.?]+"#)
let webex = try! NSRegularExpression(pattern: #"https?://([a-z0-9-.]+)?webex\.com/[^\s]*"#)
Expand Down

0 comments on commit e0e86ed

Please sign in to comment.