Sha256: 333b06a147e07f42b3eb9562c5c1c4368ee58f6a2a9503edd85e27cc5139f8eb

Contents?: true

Size: 159 Bytes

Versions: 4

Compression:

Stored size: 159 Bytes

Contents

# frozen_string_literal: true

module EmailTypo
  Hotmail = lambda do |email|
    email.gsub(/@h(i|o|p)?y?t?o?a?m?n?t?[aikl]{1,3}l?\./, "@hotmail.")
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
email_typo-0.2.0 lib/email_typo/hotmail.rb
email_typo-0.1.2 lib/email_typo/hotmail.rb
email_typo-0.1.1 lib/email_typo/hotmail.rb
email_typo-0.1.0 lib/email_typo/hotmail.rb