This repository was archived by the owner on Jan 31, 2020. It is now read-only.
Interface to add valid TLDs in Hostname validator #117
Open
Description
I recently used this validator but found it did not support .car TLD. The company I work for recently purchased such a domain and we needed to allow valid email addresses with that TLD.
I needed to extend the existing validator and also extend the EmailAddress validator to be able to reach the TLD list and then could attach the new validator in Apigility and add a list of TLDs, which were pushed onto the array in Hostname validator.
It would have been quite useful to just have a public function in Hostname validator to add to the validTlds array. That is what I am proposing to do myself.