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
Post a Comment