mirror of
https://github.com/QuantumNous/new-api.git
synced 2026-04-19 06:47:26 +00:00
fix: update tag normalization regex
This commit is contained in:
@@ -23,7 +23,7 @@ import { useMemo } from 'react';
|
|||||||
const normalizeTags = (tags = '') =>
|
const normalizeTags = (tags = '') =>
|
||||||
tags
|
tags
|
||||||
.toLowerCase()
|
.toLowerCase()
|
||||||
.split(/[,;|\s]+/)
|
.split(/[,;|]+/)
|
||||||
.map((t) => t.trim())
|
.map((t) => t.trim())
|
||||||
.filter(Boolean);
|
.filter(Boolean);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user