Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
YAML parses okay on CRuby, raises exception on JRuby #4847
--- !!seq [ !!str "https://www.youtube.com/watch?v=DzpKasJJtRs", !!str "2Pac - Dont Care What Ya\'ll Think Remix Music Video 2017", ]
Huh, this is pretty simple YAML too. I've confirmed it's valid YAML (the parser we use can be finicky) so it definitely should be ok.
The only escape character is
So it turns out I've dealt with this before, but never followed up to get it fixed in SnakeYAML
I do not know why MRI passes this. I had not noticed the online YAML tester I used (http://www.yamllint.com/) is "optimized for ruby" so that explains in why it said it was ok. Another tester, based on Python, rejects it (http://yaml-online-parser.appspot.com/).