Commit 2dd78f36af1f1b40a93d1e26a3b948d092a6a6dc
1 parent
ef9dfa7c
Exists in
master
and in
1 other branch
Dont use ^ and $ on email_regexp
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
config/initializers/devise.rb
| ... | ... | @@ -132,7 +132,7 @@ Devise.setup do |config| |
| 132 | 132 | # one (and only one) @ exists in the given string. This is mainly |
| 133 | 133 | # to give user feedback and not to assert the e-mail validity. |
| 134 | 134 | # config.email_regexp = /\A[^@]+@[^@]+\z/ |
| 135 | - config.email_regexp = /^([\w\.%\+\-]+)@([\w\-]+\.)+([\w]{2,})$/i | |
| 135 | + config.email_regexp = /\A([\w\.%\+\-]+)@([\w\-]+\.)+([\w]{2,})\z/i | |
| 136 | 136 | |
| 137 | 137 | # ==> Configuration for :timeoutable |
| 138 | 138 | # The time you want to timeout the user session without activity. After this | ... | ... |