@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/cjs/index.js
CHANGED
|
@@ -40992,7 +40992,7 @@ const fieldTextValidator = (item, selector, params) => {
|
|
|
40992
40992
|
const isMaxLengthValid = length <= (params.maxLength ?? Infinity);
|
|
40993
40993
|
const isRegexValid = (typeof value === "string" && params.regex?.test(value)) ?? true;
|
|
40994
40994
|
return {
|
|
40995
|
-
isValid: isMinLengthValid && isMaxLengthValid,
|
|
40995
|
+
isValid: isMinLengthValid && isMaxLengthValid && isRegexValid,
|
|
40996
40996
|
validationErrors: [
|
|
40997
40997
|
...(isRequiredValid ? [] : [{ errorCode: "required" }]),
|
|
40998
40998
|
...(isMinLengthValid
|