@mieweb/ui 0.6.1-dev.141 → 0.6.1-dev.143

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.js CHANGED
@@ -196,7 +196,7 @@ function AddContactModal({
196
196
  }
197
197
  if (!formData.email.trim()) {
198
198
  newErrors.email = "Email is required";
199
- } else if (!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(formData.email)) {
199
+ } else if (!/^[^\s@]+@[^\s@]+\.[^\s@.]+$/.test(formData.email)) {
200
200
  newErrors.email = "Please enter a valid email address";
201
201
  }
202
202
  setErrors(newErrors);