diff --git a/script/import_scripts/ning.rb b/script/import_scripts/ning.rb index 138776875..d5a81944b 100644 --- a/script/import_scripts/ning.rb +++ b/script/import_scripts/ning.rb @@ -55,6 +55,8 @@ class ImportScripts::Ning < ImportScripts::Base arg.gsub!(/^\(/, "") # content of file is surround by ( ) arg.gsub!(/\)$/, "") + arg.gsub!(/\]\]$/, "]") # there can be an extra ] at the end + arg.gsub!(/\}\{/, "},{") # missing commas sometimes! arg.gsub!("}]{", "},{") # surprise square brackets