lib/trackler/track.rb in trackler-2.0.4.0 vs lib/trackler/track.rb in trackler-2.0.5.0

- old
+ new

@@ -159,13 +159,15 @@ '' end end def docs_by_topic(image_path) + src = Regexp.new("]\\(%s" % DEFAULT_IMAGE_PATH) + dst = "](%s" % image_path.gsub(Regexp.new("/$"), "") Hash[ TOPICS.zip( TOPICS.map { |topic| - document_contents(topic).gsub(DEFAULT_IMAGE_PATH, image_path.gsub(Regexp.new("/$"), "")) + document_contents(topic).gsub(src, dst) } ) ] end