diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2014-03-04 15:56:16 -0500 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2014-03-04 15:56:16 -0500 |
commit | 89cf8c1bf9b528b739794071cc035121fa962c1a (patch) | |
tree | c69b18cb11764f920987c33ca133d412578a1032 /app | |
parent | ba0b145820b29719e6bc9724d9d91682e4118686 (diff) |
oops
Diffstat (limited to 'app')
-rw-r--r-- | app/models/user.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/user.rb b/app/models/user.rb index bd96223..55ea60f 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -13,12 +13,12 @@ class User < ActiveRecord::Base ## # VAILD_EMAIL is the regex used to validate a user given email. - VALID_EMAIL_REG = /^\S+@\S+\.\S+$/i + VALID_EMAIL_REG = /\A\S+@\S+\.\S+\z/i ## # VALID_USER_NAME checks to make sure a user's user_name # is in the proper format. - VALID_USER_NAME_REG = /^[a-zA-Z0-9\-]+$/ + VALID_USER_NAME_REG = /\A[a-zA-Z0-9\-]+\z/ ## # The following lines put a user account through a series of |