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:
parent
f00006ee7d
commit
941820ac88
2 changed files with 9 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue