@punks/backend-entity-manager 0.0.410 → 0.0.411
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -40977,7 +40977,7 @@ const fieldTextValidator = (item, selector, params) => {
|
|
|
40977
40977
|
const isMaxLengthValid = length <= (params.maxLength ?? Infinity);
|
|
40978
40978
|
const isRegexValid = (typeof value === "string" && params.regex?.test(value)) ?? true;
|
|
40979
40979
|
return {
|
|
40980
|
-
isValid: isMinLengthValid && isMaxLengthValid,
|
|
40980
|
+
isValid: isMinLengthValid && isMaxLengthValid && isRegexValid,
|
|
40981
40981
|
validationErrors: [
|
|
40982
40982
|
...(isRequiredValid ? [] : [{ errorCode: "required" }]),
|
|
40983
40983
|
...(isMinLengthValid
|