Class: EmailRepair::Mechanic::CommonDomainSuffixRepair
- Inherits:
-
CommonDomainRepair
- Object
- CommonDomainRepair
- EmailRepair::Mechanic::CommonDomainSuffixRepair
- Defined in:
- lib/email_repair/mechanic.rb
Class Method Summary collapse
Methods inherited from CommonDomainRepair
Class Method Details
.repair(email) ⇒ Object
81 82 83 84 85 86 |
# File 'lib/email_repair/mechanic.rb', line 81 def self.repair(email) common_domains.each do |name, suffix| email = "#{email}.#{suffix}" if email.match(/#{name}$/) end email end |