@thecb/components 10.4.2-beta.1 → 10.4.2-beta.3
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/index.cjs.js
CHANGED
|
@@ -39830,7 +39830,9 @@ const VALID_NAME = 'validator/VALID_NAME';
|
|
|
39830
39830
|
const VALID_NAME_ERROR = 'validator/VALID_NAME_ERROR';
|
|
39831
39831
|
const validName = createValidator(VALID_NAME, VALID_NAME_ERROR);
|
|
39832
39832
|
validatorFns[VALID_NAME] = (value, args, form) =>
|
|
39833
|
-
value === ''
|
|
39833
|
+
value === ''
|
|
39834
|
+
? false
|
|
39835
|
+
: new RegExp(/[A-zÀ-ÿ\-,'\S]+(\s?[A-zÀ-ÿ\-,'\S])*/).test(value);
|
|
39834
39836
|
|
|
39835
39837
|
const runValidatorErrorMessage = (type) =>
|
|
39836
39838
|
`${type} was passed to runValidator, but that validator type does not exist.
|