lib/tidy_json/formatter.rb in tidy_json-0.5.1 vs lib/tidy_json/formatter.rb in tidy_json-0.5.2
- old
+ new
@@ -201,10 +201,10 @@
graft << "\n" << indent << n
end
elsif !node.instance_of?(String) then graft << node.to_s
- else graft << "\"#{node.gsub(/"/, '\\"')}\""
+ else graft << "\"#{node.gsub('"', '\\"')}\""
end
graft.strip
end
# ~Formatter#node_to_str