Replace all whitespace
This commit is contained in:
parent
6134786546
commit
2cd1d24b79
|
@ -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) => {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user