Project

General

Profile

Actions

Bug #9300

closed

YAML Regression Concerning Escaping of Strings

Added by schneems (Richard Schneeman) over 10 years ago. Updated about 10 years ago.


Description

=begin
When you run this code against Ruby 2.1.0 and previous versions you get different results:

require 'YAML'
yaml1 = {"key" => %Q{<%= ENV["PATH"] %>} }.to_yaml
puts yaml1

Ruby 2.1.0 incorrectly escapes the quote


key: "<%= ENV["PATH"] %>"

While previous versions do not. Here is my original document for debugging this issue:

https://gist.github.com/schneems/8127922

=end

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0