3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-20 16:25:03 +00:00

Correct mention regex in mention tag function

This commit is contained in:
Usoka 2021-02-07 09:37:40 +13:00 committed by GitHub
parent 6f545f5c4a
commit d73e79a0b6
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;
}