mirror of
https://github.com/discourse/discourse.git
synced 2025-03-26 02:45:36 +08:00
FIX: Ning json files sometimes have an extra ] at the end
This commit is contained in:
parent
8513045381
commit
0124187e3a
@ -55,6 +55,8 @@ class ImportScripts::Ning < ImportScripts::Base
|
|||||||
arg.gsub!(/^\(/, "") # content of file is surround by ( )
|
arg.gsub!(/^\(/, "") # content of file is surround by ( )
|
||||||
arg.gsub!(/\)$/, "")
|
arg.gsub!(/\)$/, "")
|
||||||
|
|
||||||
|
arg.gsub!(/\]\]$/, "]") # there can be an extra ] at the end
|
||||||
|
|
||||||
arg.gsub!(/\}\{/, "},{") # missing commas sometimes!
|
arg.gsub!(/\}\{/, "},{") # missing commas sometimes!
|
||||||
|
|
||||||
arg.gsub!("}]{", "},{") # surprise square brackets
|
arg.gsub!("}]{", "},{") # surprise square brackets
|
||||||
|
Loading…
x
Reference in New Issue
Block a user