diff --git a/goss-restorethread.rb b/goss-restorethread.rb index 85ab438..c52364f 100644 --- a/goss-restorethread.rb +++ b/goss-restorethread.rb @@ -1060,7 +1060,9 @@ class GossamerForumsImporter < ImportScripts::Base # sanitized_message.gsub!(/!\[(?:http|https):\/\/data:image\/[^]]+\]\((?:http|https):\/\/data:image\/[^)]+\)/, '') # sanitized_message.gsub!(/!\[(https?:\/\/data:image\/[^]]+)\]\((https?:\/\/data:image\/[^)]+)\)/, '') # sanitized_message.gsub!(/!\[(https?:\/\/data:image\/[^\]]+)\]\((https?:\/\/data:image\/[^\)]+)\)/) + puts "Here 111 #{sanitized_message}" sanitized_message.gsub!(/!\[https?:\/\/data:image[^\]]*\]\(https?:\/\/data:image[^\)]*\)/, '') + puts "Here 222 #{sanitized_message}" # Ensure sentence structure