Today, we ran across an issue with YAML.load giving us very unexpected results for some numbers in strings, but not others.
So, it turns out that it assumes numbers with a leading zero to be an octal, and tries to be helpful by converting them for us. More trial and error lead us to find that single quotes help, but require a little c in some cases. Here are the results of trying various things. Notice the different placement of single quotes.
I hope this helps someone out. If so, let me know!
No comments:
Post a Comment