Nykakin / chompjs

Parsing JavaScript objects into Python data structures
MIT License
197 stars 11 forks source link

Floating point numbers parsed as octal #51

Closed timhawes closed 1 year ago

timhawes commented 1 year ago

Floating point numbers beginning .0 or 0.0 are incorrectly parsed. The number after the decimal is interpreted as an octal value.

Input: var x = [0.0123] Expected output: [0.0123] Actual output: [0.83]

Nykakin commented 1 year ago

Released the fix in the 1.2.2 version. Thank you for contributing!