From 63e5349209b7209490d03e4f209da2427518f2be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Hanol?= Date: Thu, 19 Jul 2018 13:11:01 +0200 Subject: [PATCH] FIX: [img] BBCode tags might have parameters --- script/import_scripts/smf1.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/import_scripts/smf1.rb b/script/import_scripts/smf1.rb index 00f555f2474..4eeb65f061d 100644 --- a/script/import_scripts/smf1.rb +++ b/script/import_scripts/smf1.rb @@ -612,7 +612,7 @@ class ImportScripts::Smf1 < ImportScripts::Base raw.gsub!(/\[li\](.*?)\[\/li\]/im) { "- #{$1}" } # puts [img] on their own line - raw.gsub!(/\[img\](.*?)\[\/img\]/im) { "\n#{$1}\n" } + raw.gsub!(/\[img[^\]]*\](.*?)\[\/img\]/im) { "\n#{$1}\n" } # puts [youtube] on their own line raw.gsub!(/\[youtube\](.*?)\[\/youtube\]/im) { "\n#{$1}\n" }