mirror of
https://github.com/google/go-jsonnet.git
synced 2025-09-29 09:21:03 +02:00
Justify \/ escape
This commit is contained in:
parent
dfc9428ac7
commit
fe6a54abaf
@ -52,7 +52,7 @@ func stringUnescape(loc *ast.LocationRange, s string) (string, error) {
|
|||||||
case '\\':
|
case '\\':
|
||||||
buf.WriteRune('\\')
|
buf.WriteRune('\\')
|
||||||
case '/':
|
case '/':
|
||||||
buf.WriteRune('/') // This one is odd, maybe a mistake.
|
buf.WriteRune('/') // See json.org, \/ is a valid escape.
|
||||||
case 'b':
|
case 'b':
|
||||||
buf.WriteRune('\b')
|
buf.WriteRune('\b')
|
||||||
case 'f':
|
case 'f':
|
||||||
|
Loading…
x
Reference in New Issue
Block a user