Update validation.md
#675 - Using single quotes for pattern does not parse escape sequences.
This commit is contained in:
parent
dbe96d33f9
commit
48e9083fb2
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user