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
path: root/lib
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2015-05-15 23:07:25 +0300
committerRobert Speicher <rspeicher@gmail.com>2015-05-26 22:49:20 +0300
commit81a09bc74cb997d3465f98cdcb72cacd413c31cd (patch)
treef7ad9d862653e2031da8c0de76cc269873323ecf /lib
parent35853033b9516aeffb6d341589406b00016947c3 (diff)
Support only double quotes for multi-word label references
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/markdown/label_reference_filter.rb3
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