aboutsummaryrefslogtreecommitdiffstats
path: root/actionmailer/test/test_case_test.rb
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2016-07-24 21:33:27 +0200
committerXavier Noria <fxn@hashref.com>2016-07-24 21:42:19 +0200
commit11b463d8cbacfe2cc1662f9e314440de71806ca9 (patch)
treedbb0765705d70811e5db149edf0e01ff675a4c0d /actionmailer/test/test_case_test.rb
parent95b2a6abc7c9ac46ddbabe96a26e280f25a78aa7 (diff)
downloadrails-11b463d8cbacfe2cc1662f9e314440de71806ca9.tar.gz
rails-11b463d8cbacfe2cc1662f9e314440de71806ca9.tar.bz2
rails-11b463d8cbacfe2cc1662f9e314440de71806ca9.zip
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.
Diffstat (limited to 'actionmailer/test/test_case_test.rb')
0 files changed, 0 insertions, 0 deletions