J
Josh Cheek
[Note: parts of this message were removed to make it a legal post.]
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?
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?