Actions
Backport #991
closedYAML: '--- stuff' not escaped as root-level hashkey
Status:
Closed
Assignee:
-
Description
=begin
{"--- foo" => "bar"}.to_yaml
=> "--- \n--- foo: bar\n"
YAML.load _
=> nil
(the --- needs to be put in quotes so it's not interpreted as the start of a new yaml, i.e.
"--- \n"--- foo": bar\n")
I also required the yaml.rb in 1.9.1 preview1; it seems to be a problem there too.
=end
Updated by jeremyevans0 (Jeremy Evans) over 4 years ago
- Tracker changed from Bug to Backport
- Project changed from Ruby 1.8 to Backport187
- Description updated (diff)
- Status changed from Open to Closed
- Target version deleted (
Ruby 1.8.6) - ruby -v deleted (
Ruby 1.8.6)
Actions
Like0
Like0Like0