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:18:22 -0400
commitad76e77fce09d0aee28b5ca1a328d5df8596b935 (patch)
tree6c5a4eb67780a67050032a0cdea80d758ac38537 /test/ng/directive/inputSpec.js
parentac5b9055f6d7224e5e8e49941c0fc9cb16c64a7e (diff)
downloadangular.js-ad76e77fce09d0aee28b5ca1a328d5df8596b935.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 d800bf92..d65f2d37 100644
--- a/test/ng/directive/inputSpec.js
+++ b/test/ng/directive/inputSpec.js
@@ -716,6 +716,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);
});
});