mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-15 05:41:51 +00:00
chore: run prettier
This commit is contained in:
parent
7927de5b5e
commit
bafe8e3b55
1 changed files with 3 additions and 1 deletions
|
@ -20,7 +20,9 @@ export const TagListCmd = tagsCmd({
|
|||
|
||||
const prefix = (await pluginData.config.getForMessage(msg)).prefix;
|
||||
const tagNames = tags.map((tag) => tag.tag).sort();
|
||||
const searchRegex = args.search ? new RegExp([...args.search].map((s) => escapeStringRegexp(s)).join(".*"), "i") : null;
|
||||
const searchRegex = args.search
|
||||
? new RegExp([...args.search].map((s) => escapeStringRegexp(s)).join(".*"), "i")
|
||||
: null;
|
||||
|
||||
const filteredTags = args.search ? tagNames.filter((tag) => searchRegex!.test(tag)) : tagNames;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue