summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-04-21 10:31:50 +0200
committerDouwe Maan <douwe@gitlab.com>2015-04-21 10:31:50 +0200
commitbc2dd5e772dea3ec78462441413842f9fe82165a (patch)
tree28d7020c684940b482fc8dc1513e2e099e631381 /lib
parentc242ca9a177c0a101e2a02541830ffe56a1ae23e (diff)
downloadgitlab-ce-bc2dd5e772dea3ec78462441413842f9fe82165a.tar.gz
Import "Comment #10" as "Comment 10" to not incorrectly reference issue.
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/google_code_import/importer.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/gitlab/google_code_import/importer.rb b/lib/gitlab/google_code_import/importer.rb
index 3916e51d0ab..caa57f557c0 100644
--- a/lib/gitlab/google_code_import/importer.rb
+++ b/lib/gitlab/google_code_import/importer.rb
@@ -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)