From 2cd1d24b79da585717f5cb37ba4a230d90cbb8bb Mon Sep 17 00:00:00 2001 From: Peter Stuifzand Date: Wed, 10 Jun 2020 00:39:44 +0200 Subject: [PATCH] Replace all whitespace --- editor/src/wikilinks.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/src/wikilinks.js b/editor/src/wikilinks.js index b133f49..202e2c3 100644 --- a/editor/src/wikilinks.js +++ b/editor/src/wikilinks.js @@ -19,7 +19,7 @@ module.exports = (options) => { postProcessPageName: (pageName) => { pageName = pageName.trim() pageName = pageName.split('/').map(sanitize).join('/') - pageName = pageName.replace(/\s+/, '_') + pageName = pageName.replace(/\s+/g, '_') return pageName }, postProcessLabel: (label) => {