Commit 92f7cdeb by feitianbubu

fix: update tag normalization regex

parent a1f9a1c8
...@@ -23,7 +23,7 @@ import { useMemo } from 'react'; ...@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment