This PR adds logic to validate that a domain passed into the URLBuilder constructor is valid. If the passed in String is found to be invalid, an IllegalArgumentException will be thrown. The criteria for evaluating the validity of a domain is based on the same pattern used on dashboard.imgix.com.
This PR adds logic to validate that a
domain
passed into theURLBuilder
constructor is valid. If the passed in String is found to be invalid, anIllegalArgumentException
will be thrown. The criteria for evaluating the validity of a domain is based on the same pattern used on dashboard.imgix.com.