diff options
| author | neilmcgibbon | 2013-08-02 14:57:58 +0100 |
|---|---|---|
| committer | Matias Niemelä | 2013-08-07 14:18:22 -0400 |
| commit | ad76e77fce09d0aee28b5ca1a328d5df8596b935 (patch) | |
| tree | 6c5a4eb67780a67050032a0cdea80d758ac38537 /test/ng/directive/inputSpec.js | |
| parent | ac5b9055f6d7224e5e8e49941c0fc9cb16c64a7e (diff) | |
| download | angular.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.js | 1 |
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); }); }); |
