Opened 9 years ago

Closed 9 years ago

#10364 closed defect (fixed)

dojox.validate.isEmailAddress returns false for valid email addreses

Reported by: Douglas Hays Owned by: Douglas Hays
Priority: high Milestone: 1.4
Component: Dojox Version: 1.4.0b
Keywords: Cc: dante, Adam Peller
Blocked By: Blocking:

Description

Per RFC 5322, the local part of email addresses can contain the following:

  • Uppercase and lowercase English letters (a-z, A-Z)
  • Digits 0 through 9
  • Characters ! # $ % & ' * + - / = ? ˆ _ ` { | } ˜
  • Character . (dot, period, full stop) provided that it is not the first or last character, and provided also that it does not appear two or more times consecutively.

As an example, the following should match: c.-h.mueller

Attachments (1)

10364.patch (1.9 KB) - added by Douglas Hays 9 years ago.
updates usernameRE in dojox.validate.regexp.emailAddress to match spec. Also correct some incorrect testcases and add some additional tests

Download all attachments as: .zip

Change History (4)

Changed 9 years ago by Douglas Hays

Attachment: 10364.patch added

updates usernameRE in dojox.validate.regexp.emailAddress to match spec. Also correct some incorrect testcases and add some additional tests

comment:1 Changed 9 years ago by Douglas Hays

Cc: dante Adam Peller added

Adding persons of interest to review

comment:2 Changed 9 years ago by Douglas Hays

Milestone: tbd1.4

(In [20854) Fixes #10364. Updates usernameRE in dojox.validate.regexp.emailAddress to match RFC5322 spec. Correct some failing testcases and add additional testcases showing both valid and invalid symbols in use.

comment:3 Changed 9 years ago by Douglas Hays

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.