aboutsummaryrefslogtreecommitdiffstats
path: root/test/ng/directive/inputSpec.js
diff options
context:
space:
mode:
authorneilmcgibbon2013-08-02 14:57:58 +0100
committerMatias Niemelä2013-08-07 14:02:44 -0400
commitaf731354b0b600f87f15e1573e64a7f7acc70f3d (patch)
tree8999558fbb9f985c2726d1bbc50c843eefb9ab04 /test/ng/directive/inputSpec.js
parenta02aaf17098006f3bf088e2b6a39b96b8b0736a9 (diff)
downloadangular.js-af731354b0b600f87f15e1573e64a7f7acc70f3d.tar.bz2
fix(input): fix the email regex to accept TLDs up to 6 characters long
The input field email regex does't not match long domain extensions. This commit extends the email regexp to take a 6 character TLD. Example 6-character TLDs include .museum and .travel - (e.g. allabout.travel).
Diffstat (limited to 'test/ng/directive/inputSpec.js')
-rw-r--r--test/ng/directive/inputSpec.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/ng/directive/inputSpec.js b/test/ng/directive/inputSpec.js
index 36fb754d..8f18964e 100644
--- a/test/ng/directive/inputSpec.js
+++ b/test/ng/directive/inputSpec.js
@@ -748,6 +748,7 @@ describe('input', function() {
it('should validate email', function() {
expect(EMAIL_REGEXP.test('a@b.com')).toBe(true);
+ expect(EMAIL_REGEXP.test('a@b.museum')).toBe(true);
expect(EMAIL_REGEXP.test('a@B.c')).toBe(false);
});
});