Commit dedbb67f authored by Reuben Pereira's avatar Reuben Pereira

Add a comment explaining the need to check for the escaped form of '>' when...

Add a comment explaining the need to check for the escaped form of '>' when searching for project references.
parent 3abe1270
...@@ -462,6 +462,8 @@ class Project < ActiveRecord::Base ...@@ -462,6 +462,8 @@ class Project < ActiveRecord::Base
# Pattern used to extract `project>` project references from text # Pattern used to extract `project>` project references from text
# (?!\w) matches any non-word character # (?!\w) matches any non-word character
# '>' or its escaped form ('&gt;') are checked for because '>' is sometimes escaped
# when the reference comes from an external source.
def markdown_reference_pattern def markdown_reference_pattern
%r{ %r{
#{reference_pattern} #{reference_pattern}
......
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