mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
json: accept escaped slash in string scanner
R=rsc CC=golang-dev https://golang.org/cl/1173041
This commit is contained in:
parent
52cc058172
commit
834abb8068
2 changed files with 2 additions and 1 deletions
|
|
@ -24,6 +24,7 @@ var unmarshalTests = []unmarshalTest{
|
|||
unmarshalTest{`1.2`, new(float), 1.2},
|
||||
unmarshalTest{`-5`, new(int16), int16(-5)},
|
||||
unmarshalTest{`"a\u1234"`, new(string), "a\u1234"},
|
||||
unmarshalTest{`"http:\/\/"`, new(string), "http://"},
|
||||
unmarshalTest{`"g-clef: \uD834\uDD1E"`, new(string), "g-clef: \U0001D11E"},
|
||||
unmarshalTest{`"invalid: \uD834x\uDD1E"`, new(string), "invalid: \uFFFDx\uFFFD"},
|
||||
unmarshalTest{"null", new(interface{}), nil},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue