This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
input type="email" with trailing numbers binds to undefined #4275
Closed
Description
If an email has a trailing number (or -
) it passes validation, but results in undefined.
testbed:
http://embed.plnkr.co/QxQmM2o6IS2ulhCvVKDf/preview
scenarios:
- [email protected] => console> [email protected]
- [email protected] => console> undefined
verified in angular versions:
- 1.0.7
- 1.0.8
- 1.1.5
- 1.2.0-rc2
Apparently it is legal to end with a number:
- ref: http://www.w3.org/TR/html-markup/input.email.html
- /^[a-zA-Z0-9.!#$%&’+/=?^`{|}~-]+@[a-zA-Z0-9-]+(?:.[a-zA-Z0-9-]+)_$/
And after looking at that regex a -
also causes the same undefined
behavior