Skip to content

A platform for community discussion. Free, open, simple.

DEV: Remove deprecated EmailValidator.email_regex (#24129)

Ted Johansson9acdafe87c17
diff --git a/lib/validators/email_validator.rb b/lib/validators/email_validator.rb
index 81badf8e853..fffa3ec42b8 100644
--- a/lib/validators/email_validator.rb
+++ b/lib/validators/email_validator.rb
@@ -52,13 +52,4 @@ class EmailValidator < ActiveModel::EachValidator
Rails.configuration.respond_to?(:developer_emails) &&
Rails.configuration.developer_emails.include?(value)
end
-
- def self.email_regex
- Discourse.deprecate(
- "EmailValidator.email_regex is deprecated. Please use EmailAddressValidator instead.",
- output_in_test: true,
- drop_from: "2.9.0",
- )
- EmailAddressValidator.email_regex
- end
end