diff options
author | Robert Speicher <rspeicher@gmail.com> | 2015-05-15 23:07:25 +0300 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2015-05-26 22:49:20 +0300 |
commit | 81a09bc74cb997d3465f98cdcb72cacd413c31cd (patch) | |
tree | f7ad9d862653e2031da8c0de76cc269873323ecf /lib | |
parent | 35853033b9516aeffb6d341589406b00016947c3 (diff) |
Support only double quotes for multi-word label references
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/markdown/label_reference_filter.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/gitlab/markdown/label_reference_filter.rb b/lib/gitlab/markdown/label_reference_filter.rb index 9f8c85b7012..e022ca69c91 100644 --- a/lib/gitlab/markdown/label_reference_filter.rb +++ b/lib/gitlab/markdown/label_reference_filter.rb @@ -72,8 +72,7 @@ module Gitlab # Returns a Hash. def label_params(id, name) if name - # TODO (rspeicher): Don't strip single quotes if we decide to only use double quotes for surrounding. - { name: name.tr('\'"', '') } + { name: name.tr('"', '') } else { id: id } end |