tailhook / rust-quire

A YAML-based configuration library for Rust
https://docs.rs/quire/
Other
13 stars 5 forks source link

Wrong parsing of escapes #5

Closed tailhook closed 7 years ago

tailhook commented 7 years ago

It looks like YAML doesn't allow invalid escapes like "\." in double quotes. We treat it as "\\.".

We should make it more consistent with YAML spec and other parsers.

tailhook commented 7 years ago

There are also some tests, that assert incorrect behavior that must be fixed: https://github.com/tailhook/rust-quire/blob/c9d480ff44f43c0785a3a4e51e9b266fd77d8ae9/src/json.rs#L410-L418