]> Witch of Git - ess/commit
Improve the number parser
authorCaleb Jones <code@calebjones.net>
Thu, 22 Dec 2016 06:43:56 +0000 (01:43 -0500)
committerCaleb Jones <code@calebjones.net>
Thu, 22 Dec 2016 06:43:56 +0000 (01:43 -0500)
commit40cd88daee33f4f604b6df93c8bd498c4d8ba1eb
tree97f2fb5551ebe2e6bcf0567b3dec51767d2e1acb
parenta193375b077098780654f51b040d5805258fac90
Improve the number parser

Instead of redoing all the number extraction ourselves, we now reuse the
number parsing code built into Rust. We simply recognize things that
look like numbers, and pass the string into the appropriate number
parsing function.
src/lib.rs