Skip to content

Commit d16b005

Browse files
committed
rule-3,4 bugs fixed
1 parent 7bb2ff5 commit d16b005

4 files changed

Lines changed: 221 additions & 203 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ validatePattern:{
226226

227227
* #### `input` (required): The name of the input field to validate.
228228
* #### `pattern` (required): A string representing the pattern to validate against. It can be a regular expression or a wildcard pattern.
229-
* #### `type` (optional): A string representing the type of pattern used. It can be either `"regex"` or `"wildcard"`. If not specified, `"regex"` is used by default.
229+
* #### `type` (required): A string representing the type of pattern used. It can be either `"regex"` or `"wildcard"`.
230230
* #### `modifiers` (optional): A string representing the modifiers for the regular expression. Only used when `type` is `"regex"`.
231231
* #### `when` (optional): A string representing the event that triggers the validation. It can be either `"onblur"` or `"typing"`. If not specified, `"onblur"` is used by default.
232232
* #### `allowEmpty` (optional): A boolean value indicating whether empty input should be considered valid. If not specified, `false` is used by default.

src/index.js

Lines changed: 98 additions & 92 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)