Sha256: d03ac1ae90482a90f7f6be84e34e81dca65908db3b0b8f8296f96db3dbdc102e
Contents?: true
Size: 691 Bytes
Versions: 1
Compression:
Stored size: 691 Bytes
Contents
# frozen_string_literal: true module EmailTypo DifferentTlds = lambda do |email| email .gsub(/\.(o\.uk|co\.k|couk|co\.u[kmnlj]{0,2})$/, ".co.uk") .gsub(/\.(cojp|co\.lp|co\.p)$/, ".co.jp") .gsub(/\.(com?br|com?\.[bv]r+)$/, ".com.br") .gsub(/\.(r+(u+(?!n).|y)|r)$/, ".ru") .gsub(/\.i+t+$/, ".it") .gsub(/\.f+[re]+$/, ".fr") .gsub(/\.de+(?!v).$/, ".de") .gsub(/\.jn$/, ".in") .gsub(/\.lde$/, ".de") .gsub(/\.oprg$/, ".org") .gsub(/\.gob(\b|\.)/, ".gov") .gsub(/\.edi?(\b|\.)/, ".edu") .gsub(/\.mx.{1,2}$/, ".mx") .gsub(/\.[com.]{2,3}ar$/, ".com.ar") .gsub(/\.[com.]{2,3}au$/, ".com.au") end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
email_typo-0.2.3 | lib/email_typo/different_tlds.rb |