Project

General

Profile

Backport #991

YAML: '--- stuff' not escaped as root-level hashkey

Added by gyngve (Gary Yngve) over 10 years ago. Updated about 1 month ago.

Status:
Closed
Priority:
Normal
Assignee:
-
[ruby-core:21225]

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

History

#1

Updated by ko1 (Koichi Sasada) over 10 years ago

  • ruby -v set to Ruby 1.8.6

=begin

=end

#2

Updated by jeremyevans0 (Jeremy Evans) about 1 month ago

  • ruby -v deleted (Ruby 1.8.6)
  • Target version deleted (Ruby 1.8.6)
  • Status changed from Open to Closed
  • Description updated (diff)
  • Project changed from Ruby 1.8 to Backport187
  • Tracker changed from Bug to Backport

Also available in: Atom PDF