Sha256: a285fcee542f645c93b002b6d95a8788450e95710a41a368fe13825d4fcf7442

Contents?: true

Size: 331 Bytes

Versions: 7

Compression:

Stored size: 331 Bytes

Contents

# frozen_string_literal: true

module EmailTypo
  Providers = lambda do |email|
    email
      .gsub(/@co?(m|n)a?cas?t{0,2}\./, "@comcast.")
      .gsub(/@sbc?gl?ob[al]{0,2}l?\./, "@sbcglobal.")
      .gsub(/@ver?i?z?on\./, "@verizon.")
      .gsub(/@icl{0,2}oud\./, "@icloud.")
      .gsub(/@outl?ook?\./, "@outlook.")
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
email_typo-0.2.3 lib/email_typo/providers.rb
email_typo-0.2.2 lib/email_typo/providers.rb
email_typo-0.2.1 lib/email_typo/providers.rb
email_typo-0.2.0 lib/email_typo/providers.rb
email_typo-0.1.2 lib/email_typo/providers.rb
email_typo-0.1.1 lib/email_typo/providers.rb
email_typo-0.1.0 lib/email_typo/providers.rb