Releases: iamakulov/unescape-js
Releases · iamakulov/unescape-js
1.1.4
1.1.3
1.1.0
1.0.8
This release fixes two issues:
-
Many octal escape sequences were interpreted improperly:
- the library didn’t properly parse octal escape sequences starting with
\0
(e.g.\017
was parsed as\0
+ 17); - the library didn’t understand 1- and 2-digit octal escape sequences (e.g.
\5
and\72
); - the library interpreted octal sequences with non-octal digits (e.g.
\019
) as proper sequences and tried to parse them.
Fixed in #1 by @addaleax and d1d8a5b by @iamakulov.
- the library didn’t properly parse octal escape sequences starting with
-
Some escape sequences (e. g.
\\x41
) were handled improperly which resulted in multiple subsequent conversions (\\x41
→\x41
→A
instead of just\\x41
→\x41
)