mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 15:48:43 -05:00
FIX: Ning json files sometimes have an extra ] at the end
This commit is contained in:
parent
8513045381
commit
0124187e3a
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue