lib/mail_address/address.rb in mail_address-1.2.12 vs lib/mail_address/address.rb in mail_address-1.2.13

- old
+ new

@@ -21,10 +21,10 @@ ATEXT = '[\-\w !#$%&\'*+/=?^`{|}~]' def format(enquote = false) addr = [] - return @original if @address.nil? + return @original.gsub(/[;,]/, '') if @address.nil? email_address = enquote ? quoted_address : @address if !@phrase.nil? && @phrase.length > 0 then if @phrase.match(/\A\(/) && @phrase.match(/\)\z/)