From 55b4441a9f24597e96eeebad2cb6b8aa5ba832d1 Mon Sep 17 00:00:00 2001 From: Anatoly <33553182+anatolykopyl@users.noreply.github.com> Date: Thu, 26 Aug 2021 02:08:07 +0300 Subject: [PATCH] Update index.js --- src/utils/regex/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/regex/index.js b/src/utils/regex/index.js index 478891a..1c9be7f 100644 --- a/src/utils/regex/index.js +++ b/src/utils/regex/index.js @@ -189,7 +189,7 @@ export const endMentionMatch = regexSupplant(/^(?:#{atSigns}|[#{latinAccentChars export const validMention = regexSupplant( '(#{validMentionPrecedingChars})' + // $1: Preceding character '(#{atSigns})' + // $2: At mark - '([a-zA-Z0-9_]{1,20})', // $3: Screen name + '([a-zA-Z0-9_.]{1,20})', // $3: Screen name // '(/[a-zA-Z][a-zA-Z0-9_-]{0,24})?', // $4: List (optional) { validMentionPrecedingChars, atSigns }, 'g'