Replace all whitespace

This commit is contained in:
Peter Stuifzand 2020-06-10 00:39:44 +02:00
parent 6134786546
commit 2cd1d24b79

View File

@ -19,7 +19,7 @@ module.exports = (options) => {
postProcessPageName: (pageName) => { postProcessPageName: (pageName) => {
pageName = pageName.trim() pageName = pageName.trim()
pageName = pageName.split('/').map(sanitize).join('/') pageName = pageName.split('/').map(sanitize).join('/')
pageName = pageName.replace(/\s+/, '_') pageName = pageName.replace(/\s+/g, '_')
return pageName return pageName
}, },
postProcessLabel: (label) => { postProcessLabel: (label) => {