Skip to content

Commit

Permalink
Merge pull request #658 from jensgerdes/feature/support_zoom-x
Browse files Browse the repository at this point in the history
Added support for zoom-x.de links
  • Loading branch information
leits authored Jan 21, 2024
2 parents 63ae0d1 + e34e6ff commit 0983947
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 3 additions & 2 deletions MeetingBar/MeetingServices.swift
Original file line number Diff line number Diff line change
Expand Up @@ -258,8 +258,9 @@ 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|com.cn)\/(?:my|[a-z]|webinar)\/[-a-zA-Z0-9()@:%_\+.~#?&=\/]*"#)
let zoom_native = try! NSRegularExpression(pattern: #"zoommtg://([a-z0-9-.]+)?zoom\.(us|com|com\.cn)/join[-a-zA-Z0-9()@:%_\+.~#?&=\/]*"#)
https:\/\/(?:[a-zA-Z0-9-.]+)?zoom(-x)?\.(?:us|com\.cn|de)\/

Check failure on line 261 in MeetingBar/MeetingServices.swift

View workflow job for this annotation

GitHub Actions / Tests

expected member name following '.'

Check failure on line 261 in MeetingBar/MeetingServices.swift

View workflow job for this annotation

GitHub Actions / Tests

expected 'var' keyword in property declaration

Check failure on line 261 in MeetingBar/MeetingServices.swift

View workflow job for this annotation

GitHub Actions / Tests

expected type

Check failure on line 261 in MeetingBar/MeetingServices.swift

View workflow job for this annotation

GitHub Actions / Tests

consecutive declarations on a line must be separated by ';'

Check failure on line 261 in MeetingBar/MeetingServices.swift

View workflow job for this annotation

GitHub Actions / Tests

expected declaration
let zoom = try! NSRegularExpression(pattern: #"https:\/\/(?:[a-zA-Z0-9-.]+)?zoom(-x)?\.(?:us|com|com\.cn|de)\/(?:my|[a-z]|webinar)\/[-a-zA-Z0-9()@:%_\+.~#?&=\/]*"#)
let zoom_native = try! NSRegularExpression(pattern: #"zoommtg://([a-z0-9-.]+)?zoom(-x)?\.(?:us|com|com\.cn|de)/join[-a-zA-Z0-9()@:%_\+.~#?&=\/]*"#)
let teams = try! NSRegularExpression(pattern: #"https?://(gov.)?teams\.microsoft\.(com|us)/l/meetup-join/[a-zA-Z0-9_%\/=\-\+\.?]+"#)
let webex = try! NSRegularExpression(pattern: #"https?://([a-z0-9-.]+)?webex\.com/[^\s]*"#)
let chime = try! NSRegularExpression(pattern: #"https?://([a-z0-9-.]+)?chime\.aws/[0-9]*"#)
Expand Down
2 changes: 2 additions & 0 deletions MeetingBarTests/MeetingServicesTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ import XCTest

let meetings = [
MeetingLink(service: .zoom, url: URL(string: "https://zoom.us/j/5551112222")!),
MeetingLink(service: .zoom, url: URL(string: "https://any-client.zoom-x.de/j/65194487075")!),
MeetingLink(service: .zoom_native, url: URL(string: "zoommtg://zoom.us/join?confno=123456789&pwd=xxxx&zc=0&browser=chrome&uname=Betty")!),
MeetingLink(service: .zoom_native, url: URL(string: "zoommtg://zoom-x.de/join?confno=123456789&pwd=xxxx&zc=0&browser=chrome&uname=Betty")!),
MeetingLink(service: .around, url: URL(string: "https://meet.around.co/r/kyafvk1b")!),
MeetingLink(service: .around, url: URL(string: "https://around.co/r/kyafvk1b")!),
MeetingLink(service: .blackboard_collab, url: URL(string: "https://us.bbcollab.com/guest/C2419D0F68382D351B97376D6B47ABA2")!),
Expand Down

0 comments on commit 0983947

Please sign in to comment.