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) => {