Sha256: 4f0c421fc582e65082b57491c1d9f991cbe593c1acb9ba3ad02972686b191f09
Contents?: true
Size: 239 Bytes
Versions: 2
Compression:
Stored size: 239 Bytes
Contents
# frozen_string_literal: true module EmailTypo DifferentTlds = lambda do |email| email .gsub(/\.(o\.uk|couk|co\.um)$/, ".co.uk") .gsub(/\.(cojp|co\.lp)$/, ".co.jp") .gsub(/\.(com?br|co\.br)$/, ".com.br") end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
email_typo-0.2.2 | lib/email_typo/different_tlds.rb |
email_typo-0.2.1 | lib/email_typo/different_tlds.rb |