sphinx-immaterial
sphinx-immaterial copied to clipboard
Fix search term match and highlight for Unicode chars
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.