Uses raw string for quote!, and adds qoute! tests.
This commit is contained in:
parent
1ad1f1f847
commit
13316f33b8
1 changed files with 1 additions and 1 deletions
|
|
@ -17,7 +17,7 @@ const LF: u8 = 0x0a;
|
|||
|
||||
macro_rules! quote {
|
||||
($x: expr) => (
|
||||
format!("\"{}\"", $x.replace("\\", "\\\\").replace("\"", "\\\""))
|
||||
format!("\"{}\"", $x.replace(r"\", r"\\").replace("\"", "\\\""))
|
||||
)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue