mirror of
https://github.com/xHyroM/bun-discord-bot.git
synced 2024-11-22 14:41:05 +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)
|
if (!name)
|
||||||
return [
|
return [
|
||||||
...tagCache.map((tag, name) => new Object({
|
...tagCache.map((tag, name) => new Object({
|
||||||
name,
|
name: name.replaceAll('-', ''),
|
||||||
value: name
|
value: name
|
||||||
})).slice(0, 25)
|
})).slice(0, 25)
|
||||||
];
|
];
|
||||||
|
@ -35,7 +35,7 @@ export const findTags = (name: string) => {
|
||||||
const tags = getTag(name, true);
|
const tags = getTag(name, true);
|
||||||
if (tags.length > 0)
|
if (tags.length > 0)
|
||||||
return tags.map(tag => new Object({
|
return tags.map(tag => new Object({
|
||||||
name: tag.keywords[0],
|
name: tag.keywords[0].replaceAll('-', ''),
|
||||||
value: tag.keywords[0]
|
value: tag.keywords[0]
|
||||||
}));
|
}));
|
||||||
else return findTags(null);
|
else return findTags(null);
|
||||||
|
|
Loading…
Reference in a new issue