Revert to the previous regex we had, which was actually working great
This commit is contained in:
@@ -198,7 +198,9 @@ namespace Umbraco.Core.Configuration.UmbracoSettings
|
|||||||
[ConfigurationProperty("emailRegex")]
|
[ConfigurationProperty("emailRegex")]
|
||||||
internal InnerTextConfigurationElement<string> 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
|
string IContentSection.NotificationEmailAddress
|
||||||
|
|||||||
Reference in New Issue
Block a user