Revert to the previous regex we had, which was actually working great

This commit is contained in:
Sebastiaan Janssen
2017-09-27 12:12:23 +02:00
parent efca0a904d
commit 147d6aa638

View File

@@ -197,8 +197,10 @@ namespace Umbraco.Core.Configuration.UmbracoSettings
[ConfigurationProperty("emailRegex")]
internal InnerTextConfigurationElement<string> EmailRegex
{
get { return GetOptionalTextElement("emailRegex", "^[^@\\s]+@[^@\\s]+\\.[^@\\s]+$"); }
{
// If this default needs to be updated then remember to also update
// val-email.spec.js - unfortunately the unit test seems to need a hardcoded regex
get { return GetOptionalTextElement("emailRegex", "^[a-z0-9!#$%&\'*+\\/=?^_`{|}~.-]+@[a-z0-9]([a-z0-9-]*[a-z0-9])?(\\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*$"); }
}
string IContentSection.NotificationEmailAddress