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:
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 => {
|
||||
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