updating dist files
This commit is contained in:
+7
-9
@@ -11818,25 +11818,23 @@ class ZodString extends ZodType {
|
||||
return !!this._def.checks.find((ch) => ch.kind === "cuid");
|
||||
}
|
||||
get minLength() {
|
||||
let min = -Infinity;
|
||||
this._def.checks.map((ch) => {
|
||||
let min = null;
|
||||
for (const ch of this._def.checks) {
|
||||
if (ch.kind === "min") {
|
||||
if (min === null || ch.value > min) {
|
||||
if (min === null || ch.value > min)
|
||||
min = ch.value;
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
return min;
|
||||
}
|
||||
get maxLength() {
|
||||
let max = null;
|
||||
this._def.checks.map((ch) => {
|
||||
for (const ch of this._def.checks) {
|
||||
if (ch.kind === "max") {
|
||||
if (max === null || ch.value < max) {
|
||||
if (max === null || ch.value < max)
|
||||
max = ch.value;
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
return max;
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user