summaryrefslogtreecommitdiff
path: root/app/models/label.rb
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2015-04-10 16:14:00 -0400
committerRobert Speicher <rspeicher@gmail.com>2015-04-20 13:01:43 -0400
commitc1c1ef52c36c9f22230e89cd2b0ed73adfafaeb7 (patch)
treea2037900bc8c9ed02a5897e6901af61864396a84 /app/models/label.rb
parentbc7c35cca0852503eb2952f47af6df07c675e844 (diff)
downloadgitlab-ce-c1c1ef52c36c9f22230e89cd2b0ed73adfafaeb7.tar.gz
Remove duplicate ampersand from Label title format validator
Diffstat (limited to 'app/models/label.rb')
-rw-r--r--app/models/label.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/label.rb b/app/models/label.rb
index 1f22ed23d42..eee28acefc1 100644
--- a/app/models/label.rb
+++ b/app/models/label.rb
@@ -27,7 +27,7 @@ class Label < ActiveRecord::Base
# Don't allow '?', '&', and ',' for label titles
validates :title,
presence: true,
- format: { with: /\A[^&\?,&]+\z/ },
+ format: { with: /\A[^&\?,]+\z/ },
uniqueness: { scope: :project_id }
default_scope { order(title: :asc) }