fix email normalize

This commit is contained in:
Pete Matsyburka committed 2025-05-15 22:16:06 +03:00
1 parent 0c71d7bff8
commit 9d013a7384
1 file changed
+1
+1
View File
@@ -132,6 +132,7 @@ module Submissions
fixed_domain = fixed_email.to_s.split('@').last
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
Rails.logger.info("Skipped email fix #{domain}")