mirror of
https://github.com/neocities/neocities.git
synced 2025-04-25 09:42:36 +02:00
zero or more for banned email domain match
This commit is contained in:
parent
52fb279fed
commit
62df9c47e9
1 changed files with 1 additions and 1 deletions
|
@ -627,7 +627,7 @@ class Site < Sequel::Model
|
||||||
email.strip!
|
email.strip!
|
||||||
|
|
||||||
banned_email_domains.each do |banned_email_domain|
|
banned_email_domains.each do |banned_email_domain|
|
||||||
return true if email.match /@#{banned_email_domain}$/i
|
return true if email.match /@*#{banned_email_domain}$/i
|
||||||
end
|
end
|
||||||
|
|
||||||
false
|
false
|
||||||
|
|
Loading…
Add table
Reference in a new issue