lib/mail_address/address.rb in mail_address-1.2.10 vs lib/mail_address/address.rb in mail_address-1.2.11

- old
+ new

@@ -63,11 +63,11 @@ i.nil? ? addr : addr[0 ... i] end def quoted_address if @address - if self.user.include?('..') || self.user.end_with?('.') - local_part = self.user.gsub(/(\A"|"\z)/, '') + local_part = self.user.gsub(/(\A"|"\z)/, '') + if local_part.include?('..') || local_part.end_with?('.') return "\"#{local_part}\"@#{self.host}" end end @address end