@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/ag-grid.cjs +1 -1
- package/dist/ag-grid.cjs.map +1 -1
- package/dist/ag-grid.js +1 -1
- package/dist/ag-grid.js.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +16 -8
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
|
|
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);
|