Open hyposlasher opened 4 years ago
camelcase-keys transforms {'4.2': 'foo'}into {'42': 'foo'} i.e. removes decimal point
{'4.2': 'foo'}
{'42': 'foo'}
That is technically the correct behavior. There's no . in a camel-cased string.
.
However, I agree, it's never the wanted result, so we can skip the key if it's a valid number.
camelcase-keys transforms
{'4.2': 'foo'}
into{'42': 'foo'}
i.e. removes decimal point