redux-freeform 5.9.0-beta.1 → 5.9.0
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.
|
@@ -476,7 +476,9 @@ const VALID_NAME = 'validator/VALID_NAME';
|
|
|
476
476
|
const VALID_NAME_ERROR = 'validator/VALID_NAME_ERROR';
|
|
477
477
|
const validName = createValidator(VALID_NAME, VALID_NAME_ERROR);
|
|
478
478
|
validatorFns[VALID_NAME] = (value, args, form) =>
|
|
479
|
-
value === ''
|
|
479
|
+
value === ''
|
|
480
|
+
? false
|
|
481
|
+
: new RegExp(/[A-zÀ-ÿ\-,'\S]+(\s?[A-zÀ-ÿ\-,'\S])*/).test(value);
|
|
480
482
|
|
|
481
483
|
const runValidatorErrorMessage = (type) =>
|
|
482
484
|
`${type} was passed to runValidator, but that validator type does not exist.
|
|
@@ -472,7 +472,9 @@ const VALID_NAME = 'validator/VALID_NAME';
|
|
|
472
472
|
const VALID_NAME_ERROR = 'validator/VALID_NAME_ERROR';
|
|
473
473
|
const validName = createValidator(VALID_NAME, VALID_NAME_ERROR);
|
|
474
474
|
validatorFns[VALID_NAME] = (value, args, form) =>
|
|
475
|
-
value === ''
|
|
475
|
+
value === ''
|
|
476
|
+
? false
|
|
477
|
+
: new RegExp(/[A-zÀ-ÿ\-,'\S]+(\s?[A-zÀ-ÿ\-,'\S])*/).test(value);
|
|
476
478
|
|
|
477
479
|
const runValidatorErrorMessage = (type) =>
|
|
478
480
|
`${type} was passed to runValidator, but that validator type does not exist.
|
|
@@ -478,7 +478,9 @@
|
|
|
478
478
|
const VALID_NAME_ERROR = 'validator/VALID_NAME_ERROR';
|
|
479
479
|
const validName = createValidator(VALID_NAME, VALID_NAME_ERROR);
|
|
480
480
|
validatorFns[VALID_NAME] = (value, args, form) =>
|
|
481
|
-
value === ''
|
|
481
|
+
value === ''
|
|
482
|
+
? false
|
|
483
|
+
: new RegExp(/[A-zÀ-ÿ\-,'\S]+(\s?[A-zÀ-ÿ\-,'\S])*/).test(value);
|
|
482
484
|
|
|
483
485
|
const runValidatorErrorMessage = (type) =>
|
|
484
486
|
`${type} was passed to runValidator, but that validator type does not exist.
|
package/package.json
CHANGED