lib/ppl/command/mutt.rb in ppl-2.0.0 vs lib/ppl/command/mutt.rb in ppl-2.1.0
- old
+ new
@@ -51,12 +51,12 @@
matches
end
def match_by_name(contact, query)
if @options[:ignore_case]
- contact.name.downcase.include? query.downcase
+ contact.name.full.downcase.include? query.downcase
else
- contact.name.include? query
+ contact.name.full.include? query
end
end
def match_by_email_address(contact, query)
matches = contact.email_addresses.select do |email_address|