mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-21 00:35:02 +00:00
Change isMention to boolean return value
This commit is contained in:
parent
541a93e9ce
commit
5b05d67857
1 changed files with 2 additions and 2 deletions
|
@ -220,10 +220,10 @@ export const TagsPlugin = zeppelinGuildPlugin<TagsPluginType>()("tags", {
|
||||||
|
|
||||||
isMention: input => {
|
isMention: input => {
|
||||||
if (typeof input !== "string") {
|
if (typeof input !== "string") {
|
||||||
return "";
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
return input.match(/^<(?:@[!&]?|#)\d+>$/);
|
return /^<(?:@[!&]?|#)\d+>$/.test(input);
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue