diff --git a/README.md b/README.md index f4e27ce..24718eb 100644 --- a/README.md +++ b/README.md @@ -138,7 +138,7 @@ anywhere whitespace is allowed you can insert comments (both `// ...` and `/* .. some particularly irresponsible json emitters leave trailing commas at the end of objects or arrays. **jsx** allows a single trailing comma in input. multiple commas -in any posistion or a preceding comma are still errors +in any position or a preceding comma are still errors all **jsx** decoder input should be `utf8` encoded binaries. sometimes you get binaries that are almost but not quite valid utf8 whether due to improper escaping or poor diff --git a/src/jsx.app.src b/src/jsx.app.src index c4c28ab..96dd391 100644 --- a/src/jsx.app.src +++ b/src/jsx.app.src @@ -20,5 +20,5 @@ {env, []}, {licenses, ["MIT"]}, - {links, [{"Github", "https://github.com/talentdeficit/jsx"}]} + {links, [{"GitHub", "https://github.com/talentdeficit/jsx"}]} ]}. diff --git a/src/jsx_decoder.erl b/src/jsx_decoder.erl index a706c89..05c5732 100644 --- a/src/jsx_decoder.erl +++ b/src/jsx_decoder.erl @@ -85,7 +85,7 @@ resume(Rest, State, Handler, Acc, Stack, Config) -> -define(start_array, 16#5B). -define(end_array, 16#5D). -%% kv seperator +%% kv separator -define(comma, 16#2C). -define(doublequote, 16#22). -define(singlequote, 16#27). @@ -1133,11 +1133,11 @@ special_number_test_() -> comments_test_() -> Cases = [ % {title, test form, json, opt flags} - {"preceeding // comment", + {"preceding // comment", [start_array, end_array, end_json], <<"// comment ", ?newline, "[]">> }, - {"preceeding /**/ comment", + {"preceding /**/ comment", [start_array, end_array, end_json], <<"/* comment */[]">> }, @@ -1349,7 +1349,7 @@ comments_test_() -> [start_array, {literal, true}, end_array, end_json], <<"[ /* comment ", 16#00c0, " */ true]">> }, - {"/**/ comment with badutf preceeded by /", + {"/**/ comment with badutf preceded by /", [start_array, {literal, true}, end_array, end_json], <<"[ /* comment /", 16#00c0, " */ true]">> } @@ -1383,7 +1383,7 @@ no_comments_test_() -> <<"[ /* comment ", 16#00c0, " */ true]">>, [{strict, [utf8]}] }, - {"/**/ comment with badutf preceeded by /", + {"/**/ comment with badutf preceded by /", badarg, <<"[ /* comment /", 16#00c0, " */ true]">>, [{strict, [utf8]}]