]> Cypherpunks repositories - gostls13.git/commit
json: handle capital floating point exponent (1E100).
authorPieter Droogendijk <pieter@binky.org.uk>
Mon, 24 Jan 2011 08:10:50 +0000 (18:10 +1000)
committerAndrew Gerrand <adg@golang.org>
Mon, 24 Jan 2011 08:10:50 +0000 (18:10 +1000)
commitc4513d3b6fc67d1e0525b008c6b34fe536ee74b6
treec72fd6c6907932c5449070377b0353f25fff2c71
parent850ed709ff9b35b4b62091913b403c41470cfc6a
json: handle capital floating point exponent (1E100).

When parsing numbers with an exponent (like "12e-1"), the JSON scanner
would only allow a lowercase 'e', while the RFC also allows the
uppercase 'E'.

R=adg
CC=golang-dev, rsc
https://golang.org/cl/3986042
src/pkg/json/scanner.go