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.
@@ -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.some((part) => { return part.length < 2; });
1582
- if (fullName.length < 2 || hasShortPart) {
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;