We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b51cb07 commit cee5815Copy full SHA for cee5815
1 file changed
src/config.ts
@@ -95,11 +95,11 @@ export interface ValidationSchemaPluginConfig extends TypeScriptPluginConfig {
95
* constraint:
96
* minLength: min # same as ['min', '$1']
97
* maxLength: max
98
- * startsWith: ["matches", "^$1"]
99
- * endsWith: ["matches", "$1$"]
100
- * contains: ["matches", "$1"]
101
- * notContains: ["matches", "^((?!$1).)*$"]
102
- * pattern: matches
+ * startsWith: ["matches", "/^$1/"]
+ * endsWith: ["matches", "/$1$/"]
+ * contains: ["matches", "/$1/"]
+ * notContains: ["matches", "/^((?!$1).)*$/"]
+ * pattern: ["matches", "/$1/"]
103
* format:
104
* # For example, `@constraint(format: "uri")`. this case $1 will be "uri".
105
* # Therefore the generator generates yup schema `.url()` followed by `uri: 'url'`
0 commit comments