logfmt-ruby icon indicating copy to clipboard operation
logfmt-ruby copied to clipboard

Convert integers like 089 correctly

Open akikoskinen opened this issue 9 years ago • 0 comments

Expect all integer values to be in base 10. This way the conversion doesn't try to interpret e.g. 089 as an octal number (which it obviously isn't).

The first commit in this PR just refactors a repeated code snippet into a helper method.

akikoskinen avatar Jan 13 '16 08:01 akikoskinen