summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2014-07-10 21:34:11 -0400
committerLuke Shumaker <lukeshu@sbcglobal.net>2014-07-10 21:34:11 -0400
commit1a87df2c13842ba1d5583ab30e3bc198245dcdc1 (patch)
tree40db45fbce7fafcf190ad2e4c5e0b3a704d9bef5 /app
parent004fa82a35b5083183db38ac1ccd15017ca2f9b9 (diff)
Port to JRuby
Diffstat (limited to 'app')
-rw-r--r--app/models/user.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/user.rb b/app/models/user.rb
index 99761e7..effe166 100644
--- a/app/models/user.rb
+++ b/app/models/user.rb
@@ -46,7 +46,7 @@ class User < ActiveRecord::Base
validates(:email,
presence: true,
# This regex is taken from http://www.w3.org/TR/html5/forms.html#e-mail-state-%28type=email%29
- format: {with: /\A[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*\z/},
+ format: { with: /\A[a-zA-Z0-9.!\#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*\z/ },
uniqueness: { case_sensitive: false })
# user_name:string_uniq