discourse/app/jobs
Michael Brown 3bf3b9a4a5 DEV: pull email address validation out to a new EmailAddressValidator
We validate the *format* of email addresses in many places with a match against
a regex, often with very slightly different syntax.

Adding a separate EmailAddressValidator simplifies the code in a few spots and
feels cleaner.

Deprecated the old location in case someone is using it in a plugin.

No functionality change is in this commit.

Note: the regex used at the moment does not support using address literals, e.g.:
* localpart@[192.168.0.1]
* localpart@[2001:db8::1]
2022-02-17 21:49:22 -05:00
..
concerns DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
onceoff PERF: migrate normalized_emails in a migrations (#15166) 2021-12-02 15:08:22 +11:00
regular DEV: pull email address validation out to a new EmailAddressValidator 2022-02-17 21:49:22 -05:00
scheduled FEATURE: New plugin API to check if upload is used (#15545) 2022-02-16 09:00:30 +02:00
base.rb DEV: Fix typo. (#15857) 2022-02-08 09:04:53 +08:00