Skip to content

Commit

Permalink
Support escaped slash in double quotes "\/"
Browse files Browse the repository at this point in the history
YAML 1.2 JSON compat
  • Loading branch information
perlpunk committed Apr 15, 2018
1 parent b6cbfee commit e333bf0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/yaml/scanner.py
Expand Up @@ -1175,6 +1175,7 @@ def scan_flow_scalar(self, style):
u' ': u'\x20',
u'\"': u'\"',
u'\\': u'\\',
u'/': u'/',
u'N': u'\x85',
u'_': u'\xA0',
u'L': u'\u2028',
Expand Down
1 change: 1 addition & 0 deletions lib3/yaml/scanner.py
Expand Up @@ -1169,6 +1169,7 @@ def scan_flow_scalar(self, style):
' ': '\x20',
'\"': '\"',
'\\': '\\',
u'/': u'/',
'N': '\x85',
'_': '\xA0',
'L': '\u2028',
Expand Down

0 comments on commit e333bf0

Please sign in to comment.