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.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/user.rb b/app/models/user.rb
index 462136f..46cd532 100644
--- a/app/models/user.rb
+++ b/app/models/user.rb
@@ -52,7 +52,7 @@ class User < ActiveRecord::Base
validates(:user_name,
presence: true,
length:{maximum: 50},
- format: {with: /\A[a-zA-Z0-9 _\-]+\z/},
+ format: {with: /\A[a-zA-Z0-9_-]+\z/},
uniqueness: {case_sensitive: false })
# password_digest:string