playframework/playframework — pull request #1558 by jroper (2013-09-03 04:43:27+00:00)
Title: Typo in EmailValidator pattern

I found a typo in the regular expression pattern of EmailValidator.

The pattern contains a multibyte single quote `’` (= \xE280 \u2019) character, but it should be an ASCII apostrophe `'` (= \x27).

Scala API `play.api.data.Forms.email`

"""\b[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*\b""".r

Also, Java API `play.data.validation.Constraints.EmailValidator`

"\\b[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\\.[a-zA-Z0-9-]+)*\\b"