mirror of
https://github.com/QuantumNous/new-api.git
synced 2026-04-19 15:18:38 +00:00
fix: tag splitting by whitespace
This commit is contained in:
@@ -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