diff --git a/.vitepress/config.mts b/.vitepress/config.mts index e584b209..21332dd5 100644 --- a/.vitepress/config.mts +++ b/.vitepress/config.mts @@ -235,10 +235,7 @@ export default defineConfig({ options: { miniSearch: { options: { - tokenize: (str) => - str - .split(/[\s.,;!?'"(){}[\]\-_+=&%$#@~`^<>|\\]+/) - .filter(Boolean) + tokenize: (str) => str.match(/[\p{L}\p{N}]+/gu) ?? [] } }, translations: {