imgix / imgix-java

A Java client library for generating URLs with imgix
https://www.imgix.com
BSD 2-Clause "Simplified" License
19 stars 8 forks source link

fix: add domain validation during URLBuilder initialization #33

Closed sherwinski closed 5 years ago

sherwinski commented 5 years ago

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.