lib/babelyoda/string.rb in babelyoda-2.1.19 vs lib/babelyoda/string.rb in babelyoda-2.1.20
- old
+ new
@@ -1,5 +1,5 @@
class String
def escape_double_quotes
- self.gsub(/([^\\])"/, "\\1\\\"")
+ self.gsub(/([^\\]|^)"/, "\\1\\\"")
end
end