From 89cf8c1bf9b528b739794071cc035121fa962c1a Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Tue, 4 Mar 2014 15:56:16 -0500 Subject: oops --- app/models/user.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/models') 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 -- cgit v1.2.3-2-g168b