Sha256: 5b22140da6ed6733cc1b1af8d7382011140dc7531f5c18a363e49fc8cf23aad9
Contents?: true
Size: 350 Bytes
Versions: 1
Compression:
Stored size: 350 Bytes
Contents
# frozen_string_literal: true module EmailTypo DotCom = lambda do |email| email .gsub(/\.co[mn]\.com/, ".com") .gsub(/\.com\.$/, ".com") .gsub(/\.com(?!cast|\.|@).{1,3}$/, ".com") .gsub(/\.co[^op]$/, ".com") .gsub(/\.c*(c|ci|coi|l|m|n|o|op|cp|0)*m+o*$/, ".com") .gsub(/\.(c|v|x)o+(m|n)$/, ".com") end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
email_typo-0.1.0 | lib/email_typo/dot_com.rb |