Api: Fix reference to et2_url EMAIL_PREG

This commit is contained in:
nathangray 2020-05-05 15:12:00 -06:00
parent 3de7d34844
commit da806d33f5
2 changed files with 2 additions and 2 deletions

View File

@ -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 <email>, make sure the <> match
(value.indexOf("<") > 0 && value.indexOf(">") != value.length - 1) ||
(value.indexOf(">") > 0 && value.indexOf("<") < 0)) {

View File

@ -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 <email>, make sure the <> match
(value.indexOf("<") > 0 && value.indexOf(">") != value.length-1) ||
(value.indexOf(">") > 0 && value.indexOf("<") < 0)