mirror of
https://github.com/discourse/discourse.git
synced 2025-02-06 03:18:23 +00:00
FIX: [img] BBCode tags might have parameters
This commit is contained in:
parent
09a00016ad
commit
63e5349209
@ -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" }
|
||||
|
Loading…
x
Reference in New Issue
Block a user