replace ^ and $ anchors in regexp with \A and \z respectively
http://guides.rubyonrails.org/security.html#regular-expressions
Showing
Please register or sign in to comment
http://guides.rubyonrails.org/security.html#regular-expressions