Sha256: a6a04c20de7a5e8318d44d89b4af3f35cad5444063dfeda37859f0f79a95a903
Contents?: true
Size: 196 Bytes
Versions: 2
Compression:
Stored size: 196 Bytes
Contents
# frozen_string_literal: true module EmailTypo RemoveInvalidChars = lambda do |email| email .gsub(/(\s|\#|'|"|\\)*/, "") .gsub(/(,|\.\.)/, ".") .gsub("@@", "@") end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
email_typo-0.2.2 | lib/email_typo/remove_invalid_chars.rb |
email_typo-0.2.1 | lib/email_typo/remove_invalid_chars.rb |