From 37ce793208191940721aba5987237f3ee816aae7 Mon Sep 17 00:00:00 2001 From: newtextdoc1111 Date: Wed, 22 Oct 2025 04:06:56 +0900 Subject: [PATCH] fix: Include hyphens in tag encoder split regex --- web/js/searchengine.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/js/searchengine.js b/web/js/searchengine.js index 47da2bc..93d25da 100644 --- a/web/js/searchengine.js +++ b/web/js/searchengine.js @@ -14,7 +14,7 @@ function createTagEncoder() { cache: true, // filter: new Set(['and', 'to', 'be', 'on']), replacer: [/(?<=[a-zA-Z\)])_$/, ''], // Remove trailing underscores after letters/parentheses - split: /(?<=[a-zA-Z\)])_(?=[a-zA-Z\(])|\((?=[a-zA-Z])|(?<=[a-zA-Z\)])\)|[ \n]/ // Split on underscores between words, parentheses, spaces, and newlines + split: /(?<=[a-zA-Z\)])_(?=[a-zA-Z\(])|\((?=[a-zA-Z])|(?<=[a-zA-Z\)])\)|[ \-\n]/ // Split on underscores between words, parentheses, spaces, hyphens, and newlines }); }