Skip to content

Commit

Permalink
Merge pull request #408 from alxstu/feature/fix_for_new_around_links
Browse files Browse the repository at this point in the history
changes regex for around links
  • Loading branch information
leits authored Jan 28, 2022
2 parents 55350c9 + fb74980 commit 9b7e0ae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion MeetingBar/Constants.swift
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ struct LinksRegex {
let youtube = try! NSRegularExpression(pattern: #"https?://((www|m)\.)?(youtube\.com|youtu\.be)/[^\s]*"#)
let vonageMeetings = try! NSRegularExpression(pattern: #"https?://meetings\.vonage\.com/[0-9]{9}"#)
let meetStream = try! NSRegularExpression(pattern: #"https?://stream\.meet\.google\.com/stream/[a-z0-9-]+"#)
let around = try! NSRegularExpression(pattern: #"https?://meet\.around\.co/[^\s]*"#)
let around = try! NSRegularExpression(pattern: #"https?://(meet.)?around\.co/[^\s]*"#)
let jam = try! NSRegularExpression(pattern: #"https?://jam\.systems/[^\s]*"#)
let discord = try! NSRegularExpression(pattern: #"(http|https|discord)://(www\.)?(canary\.)?discord(app)?\.([a-zA-Z]{2,})(.+)?"#)
let blackboard_collab = try! NSRegularExpression(pattern: #"https?://us\.bbcollab\.com/[^\s]*"#)
Expand Down
1 change: 1 addition & 0 deletions MeetingBarTests/HelpersTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ let meetings = [
MeetingLink(service: .zoom, url: URL(string: "https://zoom.us/j/5551112222")!),
MeetingLink(service: .zoom_native, url: URL(string: "zoommtg://zoom.us/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")!),
MeetingLink(service: .blackboard_collab, url: URL(string: "https://us.bbcollab.com/invite/EFC53F2790E6E50FFCC2AFBC16CC69EE")!),
MeetingLink(service: .coscreen, url: URL(string: "https://join.coscreen.co/Eng-Leads/95RyHqtzn7EoQjQ19ju3")!),
Expand Down

0 comments on commit 9b7e0ae

Please sign in to comment.