From b4a721ffeb9bccd0e25ffbb9499168d3b292e29a Mon Sep 17 00:00:00 2001 From: Peter Stuifzand Date: Mon, 17 Jan 2022 00:50:31 +0100 Subject: [PATCH] Problem: the search query does not use _ for spaces when creating a new page Solution: create a new page with _ for spaces --- editor/src/search.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/src/search.js b/editor/src/search.js index a44a788..c1a1aa4 100644 --- a/editor/src/search.js +++ b/editor/src/search.js @@ -31,7 +31,7 @@ function startQuery(query, opt) { let actualResult = []; if (opt.internal) { actualResult.push({ - ref: query, + ref: query.replace(/\s+/g, '_'), title: 'Create new page "' + query + '"', line: 'New page', text: 'New page',