From 0b43493dfdf52f768908dbcdcdf14d2cb8125bb8 Mon Sep 17 00:00:00 2001 From: Lemuel Barango Date: Thu, 21 Apr 2016 09:41:46 -0400 Subject: [PATCH] fixed devise deprecation warning for config.email_regexp --- config/initializers/devise.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/initializers/devise.rb b/config/initializers/devise.rb index eb7adf184..58149ce5c 100644 --- a/config/initializers/devise.rb +++ b/config/initializers/devise.rb @@ -142,7 +142,7 @@ # Email regex used to validate email formats. It simply asserts that # one (and only one) @ exists in the given string. This is mainly # to give user feedback and not to assert the e-mail validity. - # config.email_regexp = /\A[^@]+@[^@]+\z/ + config.email_regexp = /\A[^@\s]+@([^@\s]+\.)+[^@\W]+\z/ # ==> Configuration for :timeoutable # The time you want to timeout the user session without activity. After this