saghm / unescape-rs

"Unescapes" strings with escape sequences written with literal characters and converts it into a properly escaped one.
MIT License
11 stars 4 forks source link

Add support for `\u{X}` form #6

Open DarkDust opened 4 years ago

DarkDust commented 4 years ago

This implements support for the \u{1234} Unicode form which allows for an arbitrary number of hex digits. Rust is using these for escaping as well, so by implementing this unescape should now cover most cases of str::escape_default. A test for this has been added as well.

AurevoirXavier commented 2 years ago

It is included in https://github.com/hack-ink/unescaper now.