diff options
author | Alex Crichton <alex@alexcrichton.com> | 2015-01-20 10:00:43 -0800 |
---|---|---|
committer | Alex Crichton <alex@alexcrichton.com> | 2015-01-20 10:00:43 -0800 |
commit | 31d99cd425242f9dbaba80fa486e1414cc6a9f80 (patch) | |
tree | f4589d7415ab2cb2cb43f1d51309a1da810ae84a | |
parent | b2ce7ff6d1395db92efc1f86b7c4069f15642f40 (diff) | |
download | milf-rs-31d99cd425242f9dbaba80fa486e1414cc6a9f80.tar.gz milf-rs-31d99cd425242f9dbaba80fa486e1414cc6a9f80.zip |
Remove slash as an escapeable character
-rw-r--r-- | src/parser.rs | 1 | ||||
-rw-r--r-- | tests/valid/string-escapes.toml | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/src/parser.rs b/src/parser.rs index 8065aa8..f3bfdb6 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -369,7 +369,6 @@ impl<'a> Parser<'a> { Some((_, 'f')) => Some('\u{c}'), Some((_, 'r')) => Some('\u{d}'), Some((_, '"')) => Some('\u{22}'), - Some((_, '/')) => Some('\u{2f}'), Some((_, '\\')) => Some('\u{5c}'), Some((pos, c @ 'u')) | Some((pos, c @ 'U')) => { diff --git a/tests/valid/string-escapes.toml b/tests/valid/string-escapes.toml index 2d64500..9f9a8c0 100644 --- a/tests/valid/string-escapes.toml +++ b/tests/valid/string-escapes.toml @@ -4,5 +4,5 @@ newline = "This string has a \n new line character." formfeed = "This string has a \f form feed character." carriage = "This string has a \r carriage return character." quote = "This string has a \" quote character." -slash = "This string has a \/ slash character." +slash = "This string has a / slash character." backslash = "This string has a \\ backslash character." |