Skip to content

Commit 7a86309

Browse files
committed
forward solidus is not supposed to be escaped
it is in range 0x23-0x5B see page 8 of: https://www.rfc-editor.org/rfc/rfc8259.html this should not be a problem though, if the unescape is applied to properly escaped json data
1 parent 041656e commit 7a86309

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

parser.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -323,8 +323,6 @@ func unescapeStringBestEffort(s string) string {
323323
b = append(b, '"')
324324
case '\\':
325325
b = append(b, '\\')
326-
case '/':
327-
b = append(b, '/')
328326
case 'b':
329327
b = append(b, '\b')
330328
case 'f':

0 commit comments

Comments
 (0)