Update validation.md

#675 - Using single quotes for pattern does not parse escape sequences.
This commit is contained in:
Darren 2017-10-13 11:00:53 -07:00 committed by Benaiah Mischenko
parent dbe96d33f9
commit 48e9083fb2

View File

@ -6,7 +6,7 @@
`- {label: "Subtitle", name: "subtitle", widget: "string", required: false}`
- Pattern: Field configuration can specify a regex pattern with the appropriate error message. Example:
`- {label: "Title", name: "title", widget: "string", pattern: [".{10,}", "Should have more than 10 characters"] }`
`- {label: "Title", name: "title", widget: "string", pattern: ['.{10,}', "Should have more than 10 characters"] }`
## Advanced Guide (For widget authors)