From fde4c14b4971f272bd0c321e6da3a951b33472ff Mon Sep 17 00:00:00 2001 From: Marcus Kida Date: Thu, 12 Jan 2023 10:11:11 +0100 Subject: [PATCH] feat(ActionExtension): Use same Regex for Username matching as in App --- OpenInActionExtension/Action.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenInActionExtension/Action.js b/OpenInActionExtension/Action.js index b425558b6..b99051b15 100644 --- a/OpenInActionExtension/Action.js +++ b/OpenInActionExtension/Action.js @@ -30,7 +30,7 @@ Action.prototype = { }; function detectUsername() { - var uriUsername = document.documentURI.match("@(.+)@([a-z0-9]+\.[a-z0-9]+)") + var uriUsername = document.documentURI.match("(?:@([a-zA-Z0-9_]+)(@[a-zA-Z0-9_.-]+)?|#([^\\s.]+))") if (Array.isArray(uriUsername)) { return uriUsername[0]