fix: prevent dots and spaces in page path during create

This commit is contained in:
Nick
2019-10-02 00:44:18 -04:00
parent 2e0f861fb2
commit 95535aa3b0
2 changed files with 8 additions and 0 deletions

View File

@@ -129,6 +129,10 @@ module.exports = {
message: 'Page content cannot be empty.',
code: 6004
}),
PageIllegalPath: CustomError('PageIllegalPath', {
message: 'Page path cannot contains illegal characters.',
code: 6005
}),
PageNotFound: CustomError('PageNotFound', {
message: 'This page does not exist.',
code: 6003