« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
diff options
context:
space:
mode:
-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)) {