Skip to content

Commit 25c1818

Browse files
committed
fix
1 parent a1d6a76 commit 25c1818

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/json_mend/parser.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,6 @@ def parse_string
307307
if missing_quotes
308308
break if current_context == :object_key && (char == ':' || char.match?(/\s/))
309309
break if current_context == :array && [']', ','].include?(char)
310-
break if current_context == :object_value && [',', '}'].include?(char)
311310
end
312311

313312
if current_context == :object_value && [',', '}'].include?(char) && (string_acc.empty? || string_acc[-1] != rstring_delimiter)
@@ -365,7 +364,7 @@ def parse_string
365364
# Ok it's not right after the comma
366365
# Let's ignore
367366
rstring_delimiter_missing = false
368-
elsif peek_char(k)
367+
elsif peek_char(j)
369368
# Check for an unmatched opening brace in string_acc
370369
string_acc.reverse.chars.each do |c|
371370
if c == '{'

0 commit comments

Comments
 (0)