docbrown/app/validators
Jeremy Friesen 9687760056
Updating valid domain registration (#15436)
* Updating valid domain registration

Prior to this commit, our regular expression did not account for the `-`
character as valid within the domain.  The `-` character cannot be the
first nor last character of the domain (e.g. `-hello.com` nor
`hello-.com` are invalid but `hell-o.com` is valid).

In addition I tidied up the default value of the
`blocked_registration_email_domains` to match it's sibling `allowed_registration_email_domains`.

This relates to the spammer seo-hunt.com

* Adding validator domain validator spec

* Moving request spec to unit spec

This change does two things:

1) Allows for 2 character domains
2) Moves the spec for 2 character domains from an expensive spec to a
   cheaper to run spec (e.g., request-cycle to unit-test validator)

It preserves PR #12268
2021-11-19 10:05:00 -05:00
..
bytesize_validator.rb [15 min fix] Enforce an upper limit for articles.body_markdown (#13418) 2021-04-16 20:20:11 +02:00
color_contrast_validator.rb Add validations to SiteConfig model (#12341) 2021-01-26 09:12:24 +07:00
emoji_only_validator.rb Add validations to SiteConfig model (#12341) 2021-01-26 09:12:24 +07:00
existing_published_article_id_validator.rb Pin posts to feed (#13807) 2021-06-04 10:54:53 +02:00
profile_validator.rb Profile generalization: cleanup (#12947) 2021-08-20 16:36:02 +02:00
valid_domain_csv_validator.rb Updating valid domain registration (#15436) 2021-11-19 10:05:00 -05:00