From ca35010cefe97fae288d2cde9dcd1296dfb532e2 Mon Sep 17 00:00:00 2001 From: xHyroM Date: Wed, 13 Jul 2022 18:36:37 +0200 Subject: [PATCH] feat(tagsUtils): replace - with space --- src/utils/tagsUtils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/tagsUtils.ts b/src/utils/tagsUtils.ts index 1ddb2ba..27ab86b 100644 --- a/src/utils/tagsUtils.ts +++ b/src/utils/tagsUtils.ts @@ -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);