Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2015-04-10 23:14:00 +0300
committerRobert Speicher <rspeicher@gmail.com>2015-04-20 20:01:43 +0300
commitc1c1ef52c36c9f22230e89cd2b0ed73adfafaeb7 (patch)
treea2037900bc8c9ed02a5897e6901af61864396a84 /app/models/label.rb
parentbc7c35cca0852503eb2952f47af6df07c675e844 (diff)
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) }