From 2eef03b16460f61863251dd133713aa94b6d52ad Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Wed, 11 Dec 2024 17:45:10 -0400 Subject: client: wiki-search: break terms around any dash --- src/static/js/search-worker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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`(?${kindTermSpec.flatMap(spec => spec.terms).join('|')})` + - String.raw`|\S+`, + String.raw`|[^\s\-]+`, 'gi'); for (const match of query.matchAll(termRegexp)) { -- cgit 1.3.0-6-gf8a5