diff --git a/gossamer_forums.rb b/gossamer_forums.rb index f0b857f..6b8fed4 100644 --- a/gossamer_forums.rb +++ b/gossamer_forums.rb @@ -1,5 +1,5 @@ # gossamer threads migration-import code -# v0.21 +# v0.21.1 require 'mysql2' require 'open-uri' @@ -687,8 +687,8 @@ class GossamerForumsImporter < ImportScripts::Base # Remove unsupported tags sanitized_message.gsub!(/\[.*?\]/, '') - # Convert inline image syntax from `!(url)` to `![image](url)` - sanitized_message.gsub!(/!\((http[s]?:\/\/[^\)]+)\)/, '![image](\1)') + # Convert inline image syntax from `!(url)` to `![url](url)` + sanitized_message.gsub!(/!\((http[s]?:\/\/[^\)]+)\)/, '![\1](\1)') sanitized_message end