Sha256: cbef516b51a7303257d65098f0b7520b52ee0d4e37b44fc0749c0ac8f94c49b0

Contents?: true

Size: 181 Bytes

Versions: 7

Compression:

Stored size: 181 Bytes

Contents

# frozen_string_literal: true

module EmailTypo
  # require the o, to not false-positive .gr e-mails
  DotOrg = lambda do |email|
    email.gsub(/\.og?r?g{0,2}$/, ".org")
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

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