From 8cf4f2d23b0c4ad3067d8cb9d7982e9d5f292dca Mon Sep 17 00:00:00 2001 From: Doug Lauder Date: Wed, 17 Jan 2024 14:39:36 -0500 Subject: [PATCH] Fix channel switcher routing for DMs with remote users (#25887) --- webapp/channels/src/utils/path.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/webapp/channels/src/utils/path.ts b/webapp/channels/src/utils/path.ts index ecae218a69..f2e1fdfec5 100644 --- a/webapp/channels/src/utils/path.ts +++ b/webapp/channels/src/utils/path.ts @@ -14,6 +14,7 @@ export const TEAM_NAME_PATH_PATTERN = '[a-z0-9\\-_]+'; // - Group Channel Name (40 length UID) // - DM Name (userID__userID) // - Username prefixed by a @ +// - Username prefixed by a @, with colon and remote name e.g. @username:companyname // - User ID // - Email -export const IDENTIFIER_PATH_PATTERN = '[@a-zA-Z\\-_0-9][@a-zA-Z\\-_0-9.]*'; +export const IDENTIFIER_PATH_PATTERN = '[@a-zA-Z\\-_0-9][@a-zA-Z\\-_0-9.:]*';