Import "Comment #10" as "Comment 10" to not incorrectly reference issue.

This commit is contained in:
Douwe Maan 2015-04-21 10:31:50 +02:00
parent c242ca9a17
commit bc2dd5e772
1 changed files with 3 additions and 1 deletions

View File

@ -203,7 +203,9 @@ module Gitlab
end
def linkify_issues(s)
s.gsub(/([Ii]ssue) ([0-9]+)/, '\1 #\2')
s = s.gsub(/([Ii]ssue) ([0-9]+)/, '\1 #\2')
s = s.gsub(/([Cc]omment) #([0-9]+)/, '\1 \2')
s
end
def escape_for_markdown(s)