myrta-ui 1.1.68 → 1.1.69

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.
@@ -4636,7 +4636,7 @@ const emailValidation = (value, validations, key, invalidMessages) => {
4636
4636
  const patternValidation = (value, validations, key, invalidMessages) => {
4637
4637
  const validation = new RegExp(validations[key]);
4638
4638
  const result = { isValid: true, message: null };
4639
- if (!validation.test(value)) {
4639
+ if (value && !validation.test(value)) {
4640
4640
  result.message = getErrorMessageHelper(key, invalidMessages, validations.messages);
4641
4641
  result.isValid = false;
4642
4642
  }