onshore-forms 0.0.57 → 0.0.58
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.
|
@@ -1461,7 +1461,7 @@ OnshoreValidators.numeric = (control) => {
|
|
|
1461
1461
|
return /^[0-9]*$/.test(control.value) ? null : { numeric: true };
|
|
1462
1462
|
};
|
|
1463
1463
|
OnshoreValidators.email = (control) => {
|
|
1464
|
-
return /^([\w-\.]+@([\w-]+\.)+[\w-]{2,
|
|
1464
|
+
return /^([\w-\.]+@([\w-]+\.)+[\w-]{2,10})?$/.test(control.value) ? null : { email: true };
|
|
1465
1465
|
};
|
|
1466
1466
|
OnshoreValidators.cleanComment = (control) => {
|
|
1467
1467
|
return /[A-Z]{5}\d{4}[A-Z]{1}/.test(control.value) ? null : { cleanComment: true };
|