Commit c1c1ef52 authored by Robert Speicher's avatar Robert Speicher

Remove duplicate ampersand from Label title format validator

parent bc7c35cc
...@@ -27,7 +27,7 @@ class Label < ActiveRecord::Base ...@@ -27,7 +27,7 @@ class Label < ActiveRecord::Base
# Don't allow '?', '&', and ',' for label titles # Don't allow '?', '&', and ',' for label titles
validates :title, validates :title,
presence: true, presence: true,
format: { with: /\A[^&\?,&]+\z/ }, format: { with: /\A[^&\?,]+\z/ },
uniqueness: { scope: :project_id } uniqueness: { scope: :project_id }
default_scope { order(title: :asc) } default_scope { order(title: :asc) }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment