File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -95,11 +95,11 @@ export interface ValidationSchemaPluginConfig extends TypeScriptPluginConfig {
95
95
* constraint:
96
96
* minLength: min # same as ['min', '$1']
97
97
* maxLength: max
98
- * startsWith: ["matches", "^$1"]
99
- * endsWith: ["matches", "$1$"]
100
- * contains: ["matches", "$1 "]
101
- * notContains: ["matches", "^((?!$1).)*$"]
102
- * pattern: matches
98
+ * startsWith: ["matches", "/ ^$1/ "]
99
+ * endsWith: ["matches", "/ $1$/ "]
100
+ * contains: ["matches", "/$1/ "]
101
+ * notContains: ["matches", "/ ^((?!$1).)*$/ "]
102
+ * pattern: [" matches", "/$1/"]
103
103
* format:
104
104
* # For example, `@constraint(format: "uri")`. this case $1 will be "uri".
105
105
* # Therefore the generator generates yup schema `.url()` followed by `uri: 'url'`
You can’t perform that action at this time.
0 commit comments