nager / Nager.PublicSuffix

.NET public suffix domain parser
MIT License
155 stars 22 forks source link

IsValidDomain throws exception if domain is a TLD #43

Closed AachoLoya closed 8 months ago

AachoLoya commented 4 years ago

IsValidDomain throws an exception if the domain string provided is a TLD e.g. "mil.lv" . It should just return false, instead of throwing an exception because input can't always be sanitized.

tinohager commented 8 months ago

I am about to release a new version of the library. There are now fewer exceptions thrown and there is better support for dependency injection.