mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
11b463d8cb
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. |
||
---|---|---|
.. | ||
cases | ||
models | ||
validators |