monkey-front-core 0.0.602 → 0.0.603
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/core/utils/validators.mjs +5 -3
- package/fesm2015/monkey-front-core.mjs +4 -2
- package/fesm2015/monkey-front-core.mjs.map +1 -1
- package/fesm2020/monkey-front-core.mjs +4 -2
- package/fesm2020/monkey-front-core.mjs.map +1 -1
- package/monkey-front-core-0.0.603.tgz +0 -0
- package/package.json +1 -1
- package/monkey-front-core-0.0.602.tgz +0 -0
|
@@ -1578,8 +1578,10 @@ function validateFullName(control) {
|
|
|
1578
1578
|
if (!value)
|
|
1579
1579
|
return null;
|
|
1580
1580
|
const fullName = value.split(/\s+/);
|
|
1581
|
-
const hasShortPart = fullName.
|
|
1582
|
-
|
|
1581
|
+
const hasShortPart = fullName.filter((part) => {
|
|
1582
|
+
return part.length >= 2;
|
|
1583
|
+
}).length;
|
|
1584
|
+
if (hasShortPart < 2) {
|
|
1583
1585
|
return { fullName: true };
|
|
1584
1586
|
}
|
|
1585
1587
|
return null;
|