mirror of
https://github.com/docusealco/docuseal
synced 2026-11-05 14:42:33 -05:00
fix email typo
This commit is contained in:
1 parent
87b039e709
commit
f6d59d731c
1 file changed
+4
-1
+4
-1
@@ -117,8 +117,11 @@ module Submissions
|
||||
return fixed_email if fixed_email == email
|
||||
|
||||
domain = email.to_s.split('@').last.to_s.downcase
|
||||
fixed_domain = fixed_email.to_s.split('@').last
|
||||
|
||||
if DidYouMean::Levenshtein.distance(domain, fixed_email.to_s.split('@').last) > 3
|
||||
return email.downcase if domain == fixed_domain
|
||||
|
||||
if DidYouMean::Levenshtein.distance(domain, fixed_domain) > 3
|
||||
Rails.logger.info("Skipped email fix #{domain}")
|
||||
|
||||
return email.downcase
|
||||
|
||||
Reference in new issue
Block a user