Skip to content

Commit

Permalink
Fix getgrav/grav-plugin-admin#891 Add pattern for frontend validation…
Browse files Browse the repository at this point in the history
… of folder slugs
  • Loading branch information
flaviocopes committed Dec 17, 2016
1 parent d2152cb commit 8b8d8bc
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions system/blueprints/pages/default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ form:
label: PLUGIN_ADMIN.FOLDER_NAME
validate:
type: slug
pattern: '[a-zа-я][a-zа-я0-9_\-]+'

route:
type: select
Expand Down
1 change: 1 addition & 0 deletions system/blueprints/pages/modular_new.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ form:
validate:
type: slug
required: true
pattern: '[a-zа-я][a-zа-я0-9_\-]+'

route:
type: select
Expand Down
1 change: 1 addition & 0 deletions system/blueprints/pages/modular_raw.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ form:
validate:
type: slug
required: true
pattern: '[a-zа-я][a-zа-я0-9_\-]+'

route:
type: select
Expand Down
1 change: 1 addition & 0 deletions system/blueprints/pages/new.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ form:
validate:
type: slug
required: true
pattern: '[a-zа-я][a-zа-я0-9_\-]+'

route:
type: select
Expand Down
1 change: 1 addition & 0 deletions system/blueprints/pages/new_folder.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ form:
validate:
type: slug
required: true
pattern: '[a-zа-я][a-zа-я0-9_\-]+'

route:
type: select
Expand Down
1 change: 1 addition & 0 deletions system/blueprints/pages/raw.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ form:
validate:
type: slug
required: true
pattern: '[a-zа-я][a-zа-я0-9_\-]+'

route:
type: select
Expand Down

0 comments on commit 8b8d8bc

Please sign in to comment.