@resolveio/client-lib-core 1.1.32 → 1.1.33
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/esm2020/lib/util/validation.service.mjs +9 -1
- package/fesm2015/resolveio-client-lib-core.mjs +8 -0
- package/fesm2015/resolveio-client-lib-core.mjs.map +1 -1
- package/fesm2020/resolveio-client-lib-core.mjs +8 -0
- package/fesm2020/resolveio-client-lib-core.mjs.map +1 -1
- package/lib/util/validation.service.d.ts +3 -0
- package/package.json +1 -1
|
@@ -1802,6 +1802,14 @@ class ValidationService {
|
|
|
1802
1802
|
return { 'minLengthArray': { valid: false } };
|
|
1803
1803
|
};
|
|
1804
1804
|
}
|
|
1805
|
+
maxLengthArray(max) {
|
|
1806
|
+
return (c) => {
|
|
1807
|
+
if (c.value && c.value.length <= max) {
|
|
1808
|
+
return null;
|
|
1809
|
+
}
|
|
1810
|
+
return { 'maxLengthArray': { valid: false } };
|
|
1811
|
+
};
|
|
1812
|
+
}
|
|
1805
1813
|
validIPAddress(c) {
|
|
1806
1814
|
let regEx = /^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$/;
|
|
1807
1815
|
if (c.value === '' || c.value === null) {
|