sphinx-immaterial icon indicating copy to clipboard operation
sphinx-immaterial copied to clipboard

Fix search term match and highlight for Unicode chars

Open Bizordec opened this issue 10 months ago • 0 comments

A regular expression /\w+/g was added in PR #307, which broke the search for non-english words.

I changed it to /\p{L}+/gu to add support for all Unicode characters and removed redundant word boundary (\b) in highlight regex.

Bizordec avatar Apr 27 '24 11:04 Bizordec