--- &test-3UYS
Title: Escaped slash in double quotes
Tags: [ double ]
+STR
+DOC
+MAP
=VAL :escaped slash
=VAL "a/b
-MAP
-DOC
-STR
{
"escaped slash": "a/b"
}
json_diff
{
"escaped slash": "a\\/b"
}
json_diff
{
"escaped slash": "a\\/b"
}
json_diff
{
"escaped slash": "a\\/b"
}
error
yaml: found unknown escape character
error
+STR
+DOC
+MAP
=VAL :escaped slash
Error: ScanError { mark: Marker { index: 15, line: 1, col: 15 }, info: "while parsing a quoted scalar, found unknown escape character" }
na
Line Col Char Byte Token|Content
1 0 0 0 +DOC |
1 0 0 0 +NODE|
1 0 0 0 +MAP |
1 0 0 0 +PAIR|
1 0 0 0 +NODE|
1 0 0 0 +VAL |
1 0 0 0 =TEXT|escaped.slash
1 13 13 13 -VAL |
1 13 13 13 -NODE|
1 13 13 13 =SYNX|:
1 14 14 14 =WSPC|.
1 15 15 15 +NODE|
1 15 15 15 +VAL |
1 15 15 15 =SYNX|"
1 16 16 16 =TEXT|a
1 17 17 17 +ESC |
1 17 17 17 =SYNX|\x5c
1 18 18 18 =META|/
1 19 19 19 -ESC |
1 19 19 19 =TEXT|b
1 20 20 20 =SYNX|"
1 21 21 21 -VAL |
1 21 21 21 -NODE|
1 21 21 21 =EOL |\x0a
2 0 22 22 -PAIR|
2 0 22 22 -MAP |
2 0 22 22 -NODE|
2 0 22 22 -DOC |
na
{
'escaped slash' => 'a/b'
}
na
{
'escaped slash' => 'a/b'
}
na
{
'escaped slash' => 'a\\/b'
}
na
{
'escaped slash' => 'a\\/b'
}
na
{
'escaped slash' => 'a/b'
}
na
{
'escaped slash' => 'a\\/b'
}
na
{'escaped slash': 'a/b'}
na
{'escaped slash': 'a/b'}