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 (#154)

This commit is contained in:
Usoka 2021-02-14 06:57:15 +13:00 committed by GitHub
parent e92e48b6c6
commit a7bf7c5275

View file

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