Update index.js

This commit is contained in:
Anatoly
2021-08-28 21:14:37 +03:00
committed by GitHub
parent 55b4441a9f
commit 6a840c3171

View File

@@ -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'