1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activemodel/test
Xavier Noria 11b463d8cb use \A and \z when you mean \A and \z
In Ruby ^ and $ mean start and end of *line*.

A regexp that validates an email should not check if
some line of the string looks like an email, and maybe
be surrounded by the entire Joyce's Ulysses. What the
regexp has to check is if the string itself looks like
an email.

This validator is used only in tests, the ^/$ anchors
implied no risk.
2016-07-24 21:42:19 +02:00
..
cases Add test to better demonstrate ActiveModel::Errors#added? behavior 2016-06-21 11:18:02 -04:00
models Remove unused require and unused model stub 2016-05-31 11:30:23 -07:00
validators use \A and \z when you mean \A and \z 2016-07-24 21:42:19 +02:00