From 87da2106a5f5876e5ed13986ae4f309bc0454311 Mon Sep 17 00:00:00 2001 From: Matthijs Mullender Date: Fri, 10 Nov 2023 09:18:43 -0800 Subject: [PATCH] Update Workplace video call url regex 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 --- MeetingBar/MeetingServices.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MeetingBar/MeetingServices.swift b/MeetingBar/MeetingServices.swift index 2e2d6591..d71e4948 100644 --- a/MeetingBar/MeetingServices.swift +++ b/MeetingBar/MeetingServices.swift @@ -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]*"#)