Class: EmailRepair::Mechanic::EmailRegexRepair

Inherits:
Object
  • Object
show all
Defined in:
lib/email_repair/mechanic.rb

Class Method Summary collapse

Class Method Details

.repair(email) ⇒ Object



53
54
55
56
# File 'lib/email_repair/mechanic.rb', line 53

def self.repair(email)
  match = email.match(/(#{EmailRepair::Constants.email_regex})/)
  match && match.captures.first
end