Skip to content

Commit 372aeda

Browse files
update doc: strings can have spaces
1 parent 22fbf83 commit 372aeda

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Docs/Forms/Form.Validator.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ Form.Validator Method: Constructor
5454
### Notes
5555

5656
* [Form.Validator][] must be configured with [InputValidator][] objects (see below for details as well as a list of built-in validators). Each [InputValidator][] will be applied to any input that includes its name in the data-validators property within the elements of the form that match the fieldSelectors option.
57-
* The preferred method for passing in validator properties (like the minimum length) is to append the value after the name. This value will be passed through [JSON.decode][] so it can be a number, string, array representation, etc.
57+
* The preferred method for passing in validator properties (like the minimum length) is to append the value after the name. This value will be passed through [JSON.decode][] so it can be a number, string, array representation, etc. Quoted strings like `'foo'` can have spaces.
5858

5959
// the minimum length the user can supply is the integer 10
6060
<input data-validators="minLength:10" />

0 commit comments

Comments
 (0)