Skip to content

Commit

Permalink
forward solidus is not supposed to be escaped
Browse files Browse the repository at this point in the history
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
  • Loading branch information
barkyq committed Jan 18, 2023
1 parent 041656e commit 7a86309
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -323,8 +323,6 @@ func unescapeStringBestEffort(s string) string {
b = append(b, '"')
case '\\':
b = append(b, '\\')
case '/':
b = append(b, '/')
case 'b':
b = append(b, '\b')
case 'f':
Expand Down

0 comments on commit 7a86309

Please sign in to comment.