Whoops change hardcoded regex to one provided by the configuration

This commit is contained in:
Sebastiaan Janssen
2017-09-26 15:27:35 +02:00
parent 8a52865d22
commit 7c864fe2e9

View File

@@ -49,6 +49,6 @@ angular.module('umbraco.directives.validation')
.factory('valEmailExpression', function () {
var emailRegex = new RegExp(Umbraco.Sys.ServerVariables.umbracoSettings.emailRegex, "i");
return {
EMAIL_REGEXP: /^[^@\s]+@[^@\s]+\.[^@\s]+$/i
EMAIL_REGEXP: emailRegex
};
});