Fix numeric escapes in strings #642

Merged
zxq9 merged 2 commits from fix_numeric_escapes into master 2019-09-13 15:04:07 +09:00
2 changed files with 1 additions and 1 deletions
Showing only changes of commit 457f9cf4ea - Show all commits

View File

@ -6,6 +6,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased] ## [Unreleased]
### Added ### Added
- Handle numeric escapes, i.e. `"\x19Ethereum Signed Message:\n"`, and similar strings.
### Changed ### Changed
### Removed ### Removed

View File

@ -95,7 +95,6 @@ parse_char([$', C, $']) -> C.
unescape(Str) -> unescape(Str, []). unescape(Str) -> unescape(Str, []).
%% TODO: numeric escapes
unescape([$"], Acc) -> unescape([$"], Acc) ->
list_to_binary(lists:reverse(Acc)); list_to_binary(lists:reverse(Acc));
unescape([$\\, $x, D1, D2 | Chars ], Acc) -> unescape([$\\, $x, D1, D2 | Chars ], Acc) ->