class EmailRepair::Mechanic::CommonDomainSuffixRepair

Public Class Methods

repair(email) click to toggle source
# File lib/email_repair/mechanic.rb, line 79
def self.repair(email)
  common_domains.each do |name, suffix|
    email = "#{email}.#{suffix}" if email.match?(/#{name}$/)
  end
  email
end