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 {
9595 * constraint:
9696 * minLength: min # same as ['min', '$1']
9797 * 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/"]
103103 * format:
104104 * # For example, `@constraint(format: "uri")`. this case $1 will be "uri".
105105 * # Therefore the generator generates yup schema `.url()` followed by `uri: 'url'`
You can’t perform that action at this time.
0 commit comments