summaryrefslogtreecommitdiff
path: root/app/models/user.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/user.rb')
-rw-r--r--app/models/user.rb4
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