fix: tag splitting by whitespace
This commit is contained in:
1 parent
564e45ce82
commit
a1f9a1c872
2 files changed
+3
-3
No files matched your search
@@ -128,7 +128,7 @@ export const useModelPricingData = () => {
|
||||
if (!model.tags) return false;
|
||||
const tagsArr = model.tags
|
||||
.toLowerCase()
|
||||
.split(/[,;|\s]+/)
|
||||
.split(/[,;|]+/)
|
||||
.map((tag) => tag.trim())
|
||||
.filter(Boolean);
|
||||
return tagsArr.includes(tagLower);
|
||||
|
||||
Reference in new issue
Block a user