Ensure strings that may be confused as YAML1.2 numbers are quoted
Ensure strings that may be confused as YAML1.2 numbers are quoted.
Example: 0o123 or 1e3 strings in Ruby will be printed without quotation marks, resulting in them changing to numbers in a YAML1.2-parser (like that used in Go).
Fixes #627
@adammw Any chance you have time to continue working on this? I've run into this same problem where strings (git commit SHAs) that look like scientific notation are dumped with no quotes around them.
@djhoese Ironically that's the exact reason I started looking into this 😅 but also why it's been pretty low priority, the "solution" is just to rewrite the commit to get a different SHA so it doesn't hit this condition
This seems to solve #701 as well
❤️