oh, << is not a bangoperator in ruby

This commit is contained in:
Felix Van der Jeugt 2016-04-10 11:11:37 +02:00
parent fe25a2a85b
commit e4d29f32e6
1 changed files with 2 additions and 2 deletions

View File

@ -25,10 +25,10 @@ when '0'
name = name.strip.chomp("'").chomp('"').reverse
.chomp("'").chomp('"').reverse unless name.nil?
email.downcase!
if name.nil? or email.include? name
if name.nil? or email.include? name.downcase
contacts[email] = Set.new unless contacts.has_key? email
else
contacts[email] << name
contacts[email] <<= name
end
end
end