Sha256: e7c1e03353e55c9cf07cef8f80bdfe37405d52f2ce50b38c01e04e1d3337791f

Contents?: true

Size: 182 Bytes

Versions: 5

Compression:

Stored size: 182 Bytes

Contents

# frozen_string_literal: true

module EmailTypo
  Googlemail = lambda do |email|
    email
      .gsub(/@go{0,3}g{0,2}o?le?[mn]?[ail]{1,2}m?[aikl]{0,3}\./, "@googlemail.")
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

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