Correct mention regex in mention tag function (#154)

This commit is contained in:
Usoka 2021-02-14 06:57:15 +13:00 committed by GitHub
parent 2ac6fedfc5
commit 513755636e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -202,7 +202,7 @@ export const TagsPlugin = zeppelinGuildPlugin<TagsPluginType>()("tags", {
return "";
}
if (input.match(/^<(@#)(!&)\d+>$/)) {
if (input.match(/^<(?:@(?:!|&)?|#)\d+>$/)) {
return input;
}