Fix https://github.com/getgrav/grav-plugin-admin/issues/891 Add pattern for frontend validation of folder slugs

This commit is contained in:
Flavio Copes
2016-12-17 18:10:19 +01:00
parent d2152cb48e
commit 8b8d8bcc5b
7 changed files with 7 additions and 0 deletions

View File

@@ -7,6 +7,7 @@
1. [](#bugfix)
* Fixed case where extracting a package would cause an error during rename
* Fix issue with using Yaml::parse direcly on a filename, now deprecated
* Fix [#891](https://github.com/getgrav/grav-plugin-admin/issues/891) Add pattern for frontend validation of folder slugs
# v1.1.9
## 12/13/2016

View File

@@ -133,6 +133,7 @@ form:
label: PLUGIN_ADMIN.FOLDER_NAME
validate:
type: slug
pattern: '[a-zа-я][a-zа-я0-9_\-]+'
route:
type: select

View File

@@ -24,6 +24,7 @@ form:
validate:
type: slug
required: true
pattern: '[a-zа-я][a-zа-я0-9_\-]+'
route:
type: select

View File

@@ -73,6 +73,7 @@ form:
validate:
type: slug
required: true
pattern: '[a-zа-я][a-zа-я0-9_\-]+'
route:
type: select

View File

@@ -26,6 +26,7 @@ form:
validate:
type: slug
required: true
pattern: '[a-zа-я][a-zа-я0-9_\-]+'
route:
type: select

View File

@@ -19,6 +19,7 @@ form:
validate:
type: slug
required: true
pattern: '[a-zа-я][a-zа-я0-9_\-]+'
route:
type: select

View File

@@ -73,6 +73,7 @@ form:
validate:
type: slug
required: true
pattern: '[a-zа-я][a-zа-я0-9_\-]+'
route:
type: select