regex - Why are accents accepted in sfValidatorEmail? -


there bug in application, apparently accents in email address not considered error , sfmailer crashing error because of this.

digging through code realized wasn't blame.

sfvalidatoremail uses regular expression:

const regex_email = '/^([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})$/i'; 

accents in first part of email accepted.

should sfvalidatoremail not accept accents or should sfmailer accept it?

sfmailer should accept it. legitimate have accents in first part of email address.


Comments

Popular posts from this blog

jQuery clickable div with working mailto link inside -

java - Getting corefrences with Standard corenlp package -

WPF: binding viewmodel property of type DateTime to Calendar inside ItemsControl -