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) {} } catch (e) {}
} else { } else {
let search_kws = props.search_param.split(/[\s()+-]+/); let search_kws = props.search_param
.split(/[\s()+-]+/)
.filter((s) => s);
if (search_kws.length) { if (search_kws.length) {
search_re = new RegExp( search_re = new RegExp(
`(${search_kws `(${search_kws