Skip to content

Commit 4f0d95d

Browse files
committed
Updating devise config with email reg exp
The default reg exp devise was generating would cause issues for chrome.
1 parent d374078 commit 4f0d95d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

config/initializers/devise.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@
101101
# config.password_length = 6..128
102102

103103
# Regex to use to validate the email address
104-
# config.email_regexp = /\A([\w\.%\+\-]+)@([\w\-]+\.)+([\w]{2,})\z/i
104+
config.email_regexp = /([\w\.%\+\-]+)@([\w\-]+\.)+([\w]{2,})/i
105105

106106
# ==> Configuration for :timeoutable
107107
# The time you want to timeout the user session without activity. After this

0 commit comments

Comments
 (0)