mirror of
https://github.com/docusealco/docuseal.git
synced 2026-06-23 04:10:11 +00:00
fix gmail normalize
This commit is contained in:
@@ -120,6 +120,8 @@ module Submissions
|
||||
|
||||
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?(',') ||
|
||||
email.match?(/\.(?:gob|om|mm|cm|et|mo|nz|za|ie)\z/) ||
|
||||
email.exclude?('.')
|
||||
|
||||
Reference in New Issue
Block a user