--00163683406a861ede04a59d00ae
Content-Type: text/plain; charset=ISO-8859-1

require 'yaml'
[YAML, Marshal].each do |serializer|
  [/ab/x, /a
           b/x].each do |regex|
    begin
      serializer.load(serializer.dump regex)
    rescue
      p $!
    end
  end
end

# >> #<Syck::TypeError: Invalid Regular expression: "/a\n           b/x">



This, in tandem with a few other things, cost me about four hours today (and
made me reconsider my decision to become a nonsmoker -.-).

Is this a bug? If so, where should I report it?

--00163683406a861ede04a59d00ae--