diff options
author | Robert Speicher <rspeicher@gmail.com> | 2015-04-10 16:14:00 -0400 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2015-04-20 13:01:43 -0400 |
commit | c1c1ef52c36c9f22230e89cd2b0ed73adfafaeb7 (patch) | |
tree | a2037900bc8c9ed02a5897e6901af61864396a84 | |
parent | bc7c35cca0852503eb2952f47af6df07c675e844 (diff) | |
download | gitlab-ce-c1c1ef52c36c9f22230e89cd2b0ed73adfafaeb7.tar.gz |
Remove duplicate ampersand from Label title format validator
-rw-r--r-- | app/models/label.rb | 2 |
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) } |