Skip to content

Commit e333bf0

Browse files
committed
Support escaped slash in double quotes "\/"
YAML 1.2 JSON compat
1 parent b6cbfee commit e333bf0

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

lib/yaml/scanner.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1175,6 +1175,7 @@ def scan_flow_scalar(self, style):
11751175
u' ': u'\x20',
11761176
u'\"': u'\"',
11771177
u'\\': u'\\',
1178+
u'/': u'/',
11781179
u'N': u'\x85',
11791180
u'_': u'\xA0',
11801181
u'L': u'\u2028',

lib3/yaml/scanner.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1169,6 +1169,7 @@ def scan_flow_scalar(self, style):
11691169
' ': '\x20',
11701170
'\"': '\"',
11711171
'\\': '\\',
1172+
u'/': u'/',
11721173
'N': '\x85',
11731174
'_': '\xA0',
11741175
'L': '\u2028',

0 commit comments

Comments
 (0)