3
0
Fork 0
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:
Dragory 2023-07-01 13:10:29 +00:00
parent 7927de5b5e
commit bafe8e3b55
No known key found for this signature in database

View file

@ -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;