You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Im testing some urls with wrong top-level-domain like "github.51.aljkuhjk" but it still gets passed as a valid url. I also made require_tld = true. It should compare it to this list link to check the available
The text was updated successfully, but these errors were encountered:
@Ali-hd the require_tld check just ensures that the isFQDN, isURL or isEmail (unsure in your case) value has a TLD, not that it is a valid IANA gTLD...
i.e. localhost does NOT have a TLD and localhost.tld DOES have a tld..
What you want is to check against the IANA gTLD list
You can do this yourself by first checking that it has a TLD then checking the TLD against the list.
@Ali-hd just a tip.. when checking against the IANA gTLD list it would be wise to cache it as it does not change very often and would otherwise incur an extra network call on each "validation".. ;-)
Hi there
Im testing some urls with wrong top-level-domain like "github.51.aljkuhjk" but it still gets passed as a valid url. I also made require_tld = true. It should compare it to this list link to check the available
The text was updated successfully, but these errors were encountered: