myrta-ui 1.1.60 → 1.1.61
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/fesm2020/myrta-ui.mjs
CHANGED
|
@@ -4641,7 +4641,7 @@ const emailValidation = (value, validations, key, invalidMessages) => {
|
|
|
4641
4641
|
};
|
|
4642
4642
|
|
|
4643
4643
|
const patternValidation = (value, validations, key, invalidMessages) => {
|
|
4644
|
-
const validation = validations[key];
|
|
4644
|
+
const validation = new RegExp(validations[key]);
|
|
4645
4645
|
const result = { isValid: true, message: null };
|
|
4646
4646
|
if (!validation.test(value)) {
|
|
4647
4647
|
result.message = getErrorMessageHelper(key, invalidMessages, validations.messages);
|