From 3e8f1b38e1c58f953f0fb6a8c3c5e255213fb7e5 Mon Sep 17 00:00:00 2001 From: tienifr Date: Tue, 12 Mar 2024 17:09:02 +0700 Subject: [PATCH] fix mention with the same front name --- src/CONST.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CONST.ts b/src/CONST.ts index a163c63404a7..0ded50f39aff 100755 --- a/src/CONST.ts +++ b/src/CONST.ts @@ -1579,7 +1579,7 @@ const CONST = { POLICY_ID_FROM_PATH: /\/w\/([a-zA-Z0-9]+)(\/|$)/, - SHORT_MENTION: new RegExp(`@[\\w\\-\\+\\'#]+(?:\\.[\\w\\-\\'\\+]+)*`, 'gim'), + SHORT_MENTION: new RegExp(`@[\\w\\-\\+\\'#@]+(?:\\.[\\w\\-\\'\\+]+)*`, 'gim'), }, PRONOUNS: {