FIX: [img] BBCode tags might have parameters

This commit is contained in:
Régis Hanol 2018-07-19 13:11:01 +02:00
parent 09a00016ad
commit 63e5349209
1 changed files with 1 additions and 1 deletions

View File

@ -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" }