Skip to content

Commit 6809360

Browse files
committed
Add test for escaping single quote
1 parent 3683510 commit 6809360

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/literal.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,11 @@
179179
"comment": "Do not interpret escaped unicode.",
180180
"expression": "'\\u03a6'",
181181
"result": "\\u03a6"
182+
},
183+
{
184+
"comment": "Can escape the single quote",
185+
"expression": "'foo\\'bar'",
186+
"result": "foo'bar"
182187
}
183188
]
184189
}

0 commit comments

Comments
 (0)