Codebase list erlang-p1-yaml / d197a56
Update upstream source from tag 'upstream/1.0.21' Update to upstream version '1.0.21' with Debian dir 221145a967ab175e59a03ddda79cf5a530af0a1c Philipp Huebner 4 years ago
3 changed file(s) with 6 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
0 # Version 1.0.21
1
2 * Fix handling of strings with ' inside them
3
04 # Version 1.0.20
15
26 * Updating p1_utils to version 1.0.16.
2222
2323 {application, fast_yaml,
2424 [{description, "Fast YAML native library for Erlang / Elixir"},
25 {vsn, "1.0.20"},
25 {vsn, "1.0.21"},
2626 {modules, []},
2727 {registered, []},
2828 {applications, [kernel, stdlib]},
145145 ($\s) -> [$\s]; % $\s == "space"
146146 ($\t) -> [$\\, "t"]; % $\t == "tab"
147147 ($\v) -> [$\\, "v"]; % $\v == "vertical tab"
148 ($') -> [$\\, $']; % $" == simple quote
149148 ($") -> [$\\, $"]; % $" == double quote
150149 ($\\) -> [$\\, $\\]; % $\\ == backslash
151150 (C) -> C
381380
382381 encode_decode_simple_quote_test() ->
383382 FileName = filename:join(["..", "test", "temp_test.yml"]),
384 Binary = <<"\'\"\'">>,
383 Binary = <<"'\"'">>,
385384 Encoded = encode([[{'Source', Binary}]]),
386385 file:write_file(FileName, Encoded),
387386 Decoded = decode_from_file(FileName, [plain_as_atom]),