Prevent ReDoS by not using a regexp to verify floating point numbers
authorRichard van Velzen <rvanvelzen@experty.com>
Mon, 9 Nov 2015 10:28:27 +0000 (11:28 +0100)
committerRichard van Velzen <rvanvelzen@experty.com>
Mon, 9 Nov 2015 10:28:27 +0000 (11:28 +0100)
commit63d35f8f6db6d90d6142132d2d5f0bd5d3d698aa
treebb17a87e7ece2a1e2d6ded374df0b28981e1616a
parent37ee9de9021f1f34ed7d2f453f58348f2e74764f
Prevent ReDoS by not using a regexp to verify floating point numbers

`parseFloat` will return `NaN` for invalid numbers anyway, which is the check used to throw the parse error.

Fixes #857
lib/parse.js