mirror of
https://github.com/docusealco/docuseal
synced 2026-11-09 07:42:32 -05:00
fix email normalize
This commit is contained in:
1 parent
0c71d7bff8
commit
9d013a7384
1 file changed
+1
@@ -132,6 +132,7 @@ module Submissions
|
|||||||
fixed_domain = fixed_email.to_s.split('@').last
|
fixed_domain = fixed_email.to_s.split('@').last
|
||||||
|
|
||||||
return email.downcase if domain == fixed_domain
|
return email.downcase if domain == fixed_domain
|
||||||
|
return email.downcase if fixed_domain.match?(/\Agmail\.(?!com\z)/i)
|
||||||
|
|
||||||
if DidYouMean::Levenshtein.distance(domain, fixed_domain) > 3
|
if DidYouMean::Levenshtein.distance(domain, fixed_domain) > 3
|
||||||
Rails.logger.info("Skipped email fix #{domain}")
|
Rails.logger.info("Skipped email fix #{domain}")
|
||||||
|
|||||||
Reference in new issue
Block a user