2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-05 08:59:27 +08:00

Client-side email validation should allow capital letters

This commit is contained in:
Neil Lalonde 2013-02-13 14:30:00 -05:00
parent f00006ee7d
commit 941820ac88
2 changed files with 9 additions and 1 deletions

View file

@ -80,3 +80,11 @@ describe "Discourse.Utilities", ->
it "works with links that have underscores in them", ->
expect(cook("http://en.wikipedia.org/wiki/Homicide:_Life_on_the_Street")).toBe("<p><a href=\"http://en.wikipedia.org/wiki/Homicide:_Life_on_the_Street\" class=\"onebox\" target=\"_blank\">http://en.wikipedia.org/wiki/Homicide:_Life_on_the_Street</a></p>")
describe "emailValid", ->
it "allows upper case in first part of emails", ->
expect(Discourse.Utilities.emailValid('Bob@example.com')).toBe(true)
it "allows upper case in domain of emails", ->
expect(Discourse.Utilities.emailValid('bob@EXAMPLE.com')).toBe(true)