Fix highlight bug

This commit is contained in:
2026-06-23 22:33:55 +08:00
parent fc8297fd8f
commit 4bdf16b13a

View File

@@ -216,7 +216,9 @@ export class HighlightedMarkdown extends Component {
);
} catch (e) {}
} else {
let search_kws = props.search_param.split(/[\s()+-]+/);
let search_kws = props.search_param
.split(/[\s()+-]+/)
.filter((s) => s);
if (search_kws.length) {
search_re = new RegExp(
`(${search_kws