<div align="center">
# Unescaper
### Unescape strings with escape sequences written out as literal characters.
[](https://www.gnu.org/licenses/gpl-3.0)
[](https://github.com/hack-ink/unescaper/actions/workflows/checks.yml)
[](https://github.com/hack-ink/unescaper/tags)
[](https://github.com/hack-ink/unescaper)
[](https://github.com/hack-ink/unescaper)
</div>
## Usage
[More Examples](src/test.rs)
```rust
fn main() {
assert_eq!(unescaper::unescape(r"\u000a").unwrap(), "\n");
assert_eq!(unescaper::unescape(r"\u{a}").unwrap(), "\n");
assert_eq!(unescaper::unescape(r"\x0a").unwrap(), "\n");
assert_eq!(unescaper::unescape(r"\12").unwrap(), "\n");
}
```
## Thanks
The idea comes from [unescape-rs](https://github.com/saghm/unescape-rs).<br>
The last commit of that repository was seven years ago.<br>
So, I think it is no longer maintained.<br>
That's why I created this repository, and I have made some improvements.