A string of digits separated by comma (without quotes) is evaluated as integer. Is it intentional?
irb(main):001:0> Psych.load("key: 123,456")
=> {"key"=>123456}
irb(main):002:0> Psych.load("key: 123456,7890")
=> {"key"=>1234567890}
I understand that the first example can be seen as a number in American notation but the 2nd example is not following any notation/standard that I'm aware of. I was expecting to have both of the values evaluated as string.
With the quotes it works as expected:
irb(main):003:0> Psych.load("key: \"123,456\"")
=> {"key"=>"123,456"}
irb(main):004:0> Psych.load("key: \"123456,7890\"")
=> {"key"=>"123456,7890"}
Thanks