diff --git a/api/js/etemplate/et2_widget_url.js b/api/js/etemplate/et2_widget_url.js index 2e763797ec..1f5af07b52 100644 --- a/api/js/etemplate/et2_widget_url.js +++ b/api/js/etemplate/et2_widget_url.js @@ -201,7 +201,7 @@ var et2_url = /** @class */ (function (_super_1) { } break; case "url-email": - if (!e.data.EMAIL_PREG.test(value) || + if (!et2_url.EMAIL_PREG.test(value) || // If they use Text , make sure the <> match (value.indexOf("<") > 0 && value.indexOf(">") != value.length - 1) || (value.indexOf(">") > 0 && value.indexOf("<") < 0)) { diff --git a/api/js/etemplate/et2_widget_url.ts b/api/js/etemplate/et2_widget_url.ts index c9ed9747e4..544e942866 100644 --- a/api/js/etemplate/et2_widget_url.ts +++ b/api/js/etemplate/et2_widget_url.ts @@ -253,7 +253,7 @@ class et2_url extends et2_textbox } break; case "url-email": - if(!e.data.EMAIL_PREG.test(value) || + if(!et2_url.EMAIL_PREG.test(value) || // If they use Text , make sure the <> match (value.indexOf("<") > 0 && value.indexOf(">") != value.length-1) || (value.indexOf(">") > 0 && value.indexOf("<") < 0)