poppinss / indicative

Indicative is a simple yet powerful data validator for Node.js and browsers. It makes it so simple to write async validations on nested set of data.
https://indicative.adonisjs.com/
MIT License
417 stars 52 forks source link

URL validation failing for short domains #130

Closed tsriram closed 7 years ago

tsriram commented 7 years ago

URL validation is failing for short domains like https://t.co which is a valid URL. This is because the regex checks for a minimum of 2 characters for the domain name part. We've to probably change it to 1 I guess.

I can send a PR for that if you're okay.

thetutlage commented 7 years ago

Yup PR is welcomed