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

Change isMention to boolean return value

This commit is contained in:
Usoka 2021-05-03 08:01:41 +12:00
parent 541a93e9ce
commit 5b05d67857

View file

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