Commit 133bf336 authored by Reuben Pereira's avatar Reuben Pereira
Browse files

Use literal '>' as escaped form of '>'

parent 76bfc68f390f
......@@ -460,6 +460,10 @@ def reference_postfix
'>'
end
def reference_postfix_escaped
'>'
end
# Pattern used to extract `namespace/project>` project references from text.
# (?!\w) matches any non-word character.
# '>' or its escaped form ('>') are checked for because '>' is sometimes escaped
......@@ -467,7 +471,7 @@ def reference_postfix
def markdown_reference_pattern
%r{
#{reference_pattern}
(#{reference_postfix}|#{CGI.escapeHTML(reference_postfix)})
(#{reference_postfix}|#{reference_postfix_escaped})
(?!\w)
}x
end
......
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