mirror of
https://github.com/docusealco/docuseal
synced 2026-11-06 06:52:33 -05:00
fix gmail normalize
This commit is contained in:
1 parent
14fa8fc8e7
commit
0fb9c2bbf6
1 file changed
+2
@@ -120,6 +120,8 @@ module Submissions
|
|||||||
|
|
||||||
email = email.to_s.tr('/', ',')
|
email = email.to_s.tr('/', ',')
|
||||||
|
|
||||||
|
return email.downcase.sub(/@gmail?\z/i, '@gmail.com') if email.match?(/@gmail?\z/i)
|
||||||
|
|
||||||
return email.downcase if email.include?(',') ||
|
return email.downcase if email.include?(',') ||
|
||||||
email.match?(/\.(?:gob|om|mm|cm|et|mo|nz|za|ie)\z/) ||
|
email.match?(/\.(?:gob|om|mm|cm|et|mo|nz|za|ie)\z/) ||
|
||||||
email.exclude?('.')
|
email.exclude?('.')
|
||||||
|
|||||||
Reference in new issue
Block a user