mirror of
https://github.com/discourse/discourse-data-explorer.git
synced 2025-02-16 08:24:47 +00:00
The old float validation had several bugs. It will recognize strings like "a1.2" and "3.4b" as valid doubles, but will not recognize integers like "1234" as doubles. Also, since an empty string is not falsy in Ruby, it will recognize "Inf" as -Infinity. This commit fixes these issues