« get me outta code hell

client: wiki-search: break terms around any dash - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-12-11 17:45:10 -0400
committer(quasar) nebula <qznebula@protonmail.com>2024-12-19 13:25:00 -0400
commit2eef03b16460f61863251dd133713aa94b6d52ad (patch)
tree8e0f41f228884e41ebd8eaa2a36382f03eb03b61
parent613bfbc6e8d492852cd2d9fd4842dadeb6bb4a77 (diff)
client: wiki-search: break terms around any dash
-rw-r--r--src/static/js/search-worker.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/static/js/search-worker.js b/src/static/js/search-worker.js
index 8d987a74..1b4684ad 100644
--- a/src/static/js/search-worker.js
+++ b/src/static/js/search-worker.js
@@ -515,7 +515,7 @@ function processTerms(query) {
   const termRegexp =
     new RegExp(
       String.raw`(?<kind>${kindTermSpec.flatMap(spec => spec.terms).join('|')})` +
-      String.raw`|\S+`,
+      String.raw`|[^\s\-]+`,
       'gi');
 
   for (const match of query.matchAll(termRegexp)) {