You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When emitting YAML using Psych, strings that have a key-value pair where the value contains a colon and a single quote, Psych escapes the single quote with another single quote, relates to #157.
I'd expect Psych.dump(key: "me: I don't think so")
to return "---\n:key: \"me: I don't think so\"\n"
It actually returns "---\n:key: 'me: I don''t think so'\n"
This is not a huge issue but confuses people.
The text was updated successfully, but these errors were encountered:
knugie
pushed a commit
to knugie/psych
that referenced
this issue
Jul 21, 2017
When emitting YAML using Psych, strings that have a key-value pair where the value contains a colon and a single quote, Psych escapes the single quote with another single quote, relates to #157.
I'd expect
Psych.dump(key: "me: I don't think so")
to return
"---\n:key: \"me: I don't think so\"\n"
It actually returns
"---\n:key: 'me: I don''t think so'\n"
This is not a huge issue but confuses people.
The text was updated successfully, but these errors were encountered: