whitespace
This commit is contained in:
parent
ecdd34fa37
commit
03381567d2
4 changed files with 31 additions and 13 deletions
|
@ -357,7 +357,9 @@ key(Bin, Stack, Opts) ->
|
|||
string(Bin, Stack, Opts) -> string(Bin, Stack, Opts, []).
|
||||
|
||||
string(<<?quote/?utfx, Rest/binary>>, [key|_] = Stack, Opts, Acc) ->
|
||||
{jsx, {key, unicode:characters_to_binary(lists:reverse(Acc))}, fun() -> colon(Rest, Stack, Opts) end};
|
||||
{jsx, {key, unicode:characters_to_binary(lists:reverse(Acc))}, fun() ->
|
||||
colon(Rest, Stack, Opts)
|
||||
end};
|
||||
string(<<?quote/?utfx, Rest/binary>>, Stack, Opts, Acc) ->
|
||||
{jsx, {string, unicode:characters_to_binary(lists:reverse(Acc))}, fun() ->
|
||||
maybe_done(Rest, Stack, Opts)
|
||||
|
@ -1228,7 +1230,11 @@ check_bad(List) ->
|
|||
).
|
||||
|
||||
check_replaced(List) ->
|
||||
lists:dropwhile(fun({_, [{string, <<16#fffd/utf8>>}|_]}) -> true ; (_) -> false end,
|
||||
lists:dropwhile(fun({_, [{string, <<16#fffd/utf8>>}|_]}) ->
|
||||
true
|
||||
; (_) ->
|
||||
false
|
||||
end,
|
||||
check(List, [loose_unicode], [])
|
||||
).
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue