Skip to content

Commit

Permalink
Update Workplace video call url regex
Browse files Browse the repository at this point in the history
This change makes the regex for workplace calls more specific. This prevents an issue where other workplace links (e.g. to posts, or notes) are picked up as the video call link.

I had tested this before using the custom regex setting in preferences. And that works fine, but does not show the workplace icon. Which is why I want to upstream the improved logic
  • Loading branch information
mullender authored Nov 10, 2023
1 parent d5bf577 commit 87da210
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 @@ -279,7 +279,7 @@ struct LinksRegex {
let starleaf = try! NSRegularExpression(pattern: #"https?://meet\.starleaf\.com/[^\s]*"#)
let duo = try! NSRegularExpression(pattern: #"https?://duo\.app\.goo\.gl/[^\s]*"#)
let voov = try! NSRegularExpression(pattern: #"https?://voovmeeting\.com/[^\s]*"#)
let facebook_workspace = try! NSRegularExpression(pattern: #"https?://([a-z0-9-.]+)?workplace\.com/[^\s]+"#)
let facebook_workspace = try! NSRegularExpression(pattern: #"https?://([a-z0-9-.]+)?workplace\.com/groupcall/[^\s]+"#)
let skype = try! NSRegularExpression(pattern: #"https?://join\.skype\.com/[^\s]*"#)
let lifesize = try! NSRegularExpression(pattern: #"https?://call\.lifesizecloud\.com/[^\s]*"#)
let youtube = try! NSRegularExpression(pattern: #"https?://((www|m)\.)?(youtube\.com|youtu\.be)/[^\s]*"#)
Expand Down

0 comments on commit 87da210

Please sign in to comment.