diff options
author | pranay.kumar <pranay.kumar@samsung.com> | 2015-12-26 07:52:39 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-12-26 15:53:32 +0000 |
commit | d46e6212cf8ad49f1ddb028b661fa27d73aeb774 (patch) | |
tree | 2fe50c2f935775e61f2307a714986586f855af3b /gpu/command_buffer/client | |
parent | 9cc09a13cb2f11cf05cf065b1acd26c1e384d5f0 (diff) | |
download | chromium_src-d46e6212cf8ad49f1ddb028b661fa27d73aeb774.zip chromium_src-d46e6212cf8ad49f1ddb028b661fa27d73aeb774.tar.gz chromium_src-d46e6212cf8ad49f1ddb028b661fa27d73aeb774.tar.bz2 |
Invalid email address (which has invalid domain) is rejected by Email
apps. It should not be detected as email in the first place (as
RFC standards 5322).
As email apps reject these invalid Email-Addresses, So exclusion of
improper email addresses from getting detected as email Intent, would
definitely improve the User Experience & save user efforts.
As per section 3.4.1 of RFC 5322
(http://tools.ietf.org/html/rfc5322#section-3.4.1).
A domain is consisted as=
"domain = dot-atom / domain-literal / obs-domain"
A dot atom "contains no characters other than atext characters or "."
surrounded by atext characters". Hence, by definition, a dot atom may
not contain two or more consecutive periods.
atext Reference
(http://tools.ietf.org/html/rfc5322#section-3.2.3)
Modified the Regex to identify the same, added more unit test cases
BUG=571804
Review URL: https://codereview.chromium.org/1541093002
Cr-Commit-Position: refs/heads/master@{#366901}
Diffstat (limited to 'gpu/command_buffer/client')
0 files changed, 0 insertions, 0 deletions