Permalink
Browse files

Merge pull request #579 from onebree/patch-1

Docs: Clarify use of regexp for pattern validator
  • Loading branch information...
2 parents 3e2ac95 + e3a9823 commit d706ec0073535402847f2d2c7da2bbfdfcf54d29 @tabalinas committed on GitHub Jan 6, 2017
Showing with 1 addition and 1 deletion.
  1. +1 −1 README.md
View
@@ -1845,7 +1845,7 @@ The `jsGrid.validators` object contains all built-in validators. The key of the
* **rangeLength** - the length of the field value is limited by range (the range should be provided as an array in `param` field of validation config)
* **minLength** - the minimum length of the field value is limited (the minimum value should be provided in `param` field of validation config)
* **maxLength** - the maximum length of the field value is limited (the maximum value should be provided in `param` field of validation config)
- * **pattern** - the field value should match the defined pattern (the pattern should be provided as a string regexp in `param` field of validation config)
+ * **pattern** - the field value should match the defined pattern (the pattern should be provided as a regexp literal or string in `param` field of validation config)
* **range** - the value of the number field is limited by range (the range should be provided as an array in `param` field of validation config)
* **min** - the minimum value of the number field is limited (the minimum should be provided in `param` field of validation config)
* **max** - the maximum value of the number field is limited (the maximum should be provided in `param` field of validation config)

0 comments on commit d706ec0

Please sign in to comment.