mirror of
https://github.com/xHyroM/bun-discord-bot.git
synced 2024-11-10 01:08:07 +01:00
feat(tagsUtils): replace - with space
This commit is contained in:
parent
ebae9a17b2
commit
ca35010cef
1 changed files with 2 additions and 2 deletions
|
@ -27,7 +27,7 @@ export const findTags = (name: string) => {
|
|||
if (!name)
|
||||
return [
|
||||
...tagCache.map((tag, name) => new Object({
|
||||
name,
|
||||
name: name.replaceAll('-', ''),
|
||||
value: name
|
||||
})).slice(0, 25)
|
||||
];
|
||||
|
@ -35,7 +35,7 @@ export const findTags = (name: string) => {
|
|||
const tags = getTag(name, true);
|
||||
if (tags.length > 0)
|
||||
return tags.map(tag => new Object({
|
||||
name: tag.keywords[0],
|
||||
name: tag.keywords[0].replaceAll('-', ''),
|
||||
value: tag.keywords[0]
|
||||
}));
|
||||
else return findTags(null);
|
||||
|
|
Loading…
Reference in a new issue