Closed greyblake closed 11 years ago
This introduces one subtle bug where 'e1'
is now coerced into 0.
What I would think you'd want to do is something like:
FRACTIONAL_REGEXP = /(?:\.\d+)/.freeze
NUMERIC_REGEXP = /\A(#{INTEGER_REGEXP}#{FRACTIONAL_REGEXP}?#{EXPONENT_REGEXP}?|#{FRACTIONAL_REGEXP}#{EXPONENT_REGEXP}?)\z/.freeze
@dkubb You're right, thanks. Will fix today.
Fixed in 0b753a8
This looks great, thanks!
Changes for Issue #126