@thecb/components 10.4.4-beta.3 → 10.4.4-beta.5
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
|
@@ -40014,14 +40014,6 @@ validatorFns[IS_PROBABLY_EMAIL] = (value, args, form) => {
|
|
|
40014
40014
|
return new RegExp(/^\S+@\S+\.\S+$/).test(value);
|
|
40015
40015
|
};
|
|
40016
40016
|
|
|
40017
|
-
const VALID_NAME = 'validator/VALID_NAME';
|
|
40018
|
-
const VALID_NAME_ERROR = 'validator/VALID_NAME_ERROR';
|
|
40019
|
-
const validName = createValidator(VALID_NAME, VALID_NAME_ERROR);
|
|
40020
|
-
validatorFns[VALID_NAME] = (value, args, form) =>
|
|
40021
|
-
value === ''
|
|
40022
|
-
? false
|
|
40023
|
-
: new RegExp(/[A-zÀ-ÿ\-,'\S]+(\s?[A-zÀ-ÿ\-,'\S])*/).test(value);
|
|
40024
|
-
|
|
40025
40017
|
const runValidatorErrorMessage = (type) =>
|
|
40026
40018
|
`${type} was passed to runValidator, but that validator type does not exist.
|
|
40027
40019
|
Please check that you are only calling validator creator functions exported from
|