From e2aed87e9cd7e1b9d2573bf5bd4fb720e473635d Mon Sep 17 00:00:00 2001 From: wiggin77 Date: Wed, 17 Jan 2024 12:00:24 -0500 Subject: [PATCH] Fix channel switcher routing for DMs with remote users --- app/utils/url/path.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/utils/url/path.ts b/app/utils/url/path.ts index 19a579512..89d81bbd5 100644 --- a/app/utils/url/path.ts +++ b/app/utils/url/path.ts @@ -15,6 +15,8 @@ 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.:]*'; +