Actions
Bug #14096
closedPsych allows invalid single quote escape character
Description
In https://github.com/jruby/jruby/issues/4847 (and previously in https://github.com/jruby/jruby/issues/2199) we have had users report that escaped single quotes within a YAML string do not parse in JRuby, although they parse in MRI.
According to the YAML specs (both 1.1 and 1.2), \\'
is not a valid escape character. The YAML library we use, SnakeYAML, has pushed back on adding it since it is not part of the spec.
Why does MRI parse this invalid YAML?
---
!!seq [
!!str "https://www.youtube.com/watch?v=DzpKasJJtRs",
!!str "2Pac - Dont Care What Ya\'ll Think Remix Music Video 2017",
]
Actions
Like0
Like0Like0Like0Like0