Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
heptapod
heptapod
Commits
ed940d766934
Commit
ed940d76
authored
Jul 03, 2018
by
Reuben Pereira
Browse files
Use literal '>' as escaped form of '>'
parent
76bfc68f390f
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/models/project.rb
View file @
ed940d76
...
...
@@ -460,6 +460,10 @@
'>'
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
markdown_reference_pattern
%r{
#{
reference_pattern
}
(
#{
reference_postfix
}
|
#{
CGI
.
escapeHTML
(
reference_postfix
)
}
)
(
#{
reference_postfix
}
|
#{
reference_postfix
_escaped
}
)
(?!
\w
)
}x
end
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment