Problem: the search query does not use _ for spaces when creating a new page
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
Solution: create a new page with _ for spaces
This commit is contained in:
parent
1b8b5ff4f6
commit
b4a721ffeb
|
@ -31,7 +31,7 @@ function startQuery(query, opt) {
|
||||||
let actualResult = [];
|
let actualResult = [];
|
||||||
if (opt.internal) {
|
if (opt.internal) {
|
||||||
actualResult.push({
|
actualResult.push({
|
||||||
ref: query,
|
ref: query.replace(/\s+/g, '_'),
|
||||||
title: 'Create new page "' + query + '"',
|
title: 'Create new page "' + query + '"',
|
||||||
line: 'New page',
|
line: 'New page',
|
||||||
text: 'New page',
|
text: 'New page',
|
||||||
|
|
Loading…
Reference in New Issue
Block a user