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

Simplify mention regex

This commit is contained in:
Usoka 2021-05-02 20:54:46 +12:00
parent edd78fc9c6
commit 6f33f50cdf

View file

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