Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request :- URL validation method #14

Open
andrewcrook opened this issue May 25, 2011 · 0 comments
Open

Request :- URL validation method #14

andrewcrook opened this issue May 25, 2011 · 0 comments

Comments

@andrewcrook
Copy link

Would be nice to include a validation method for example ...

url = Domainatrix.parse('http://www.test.com')
url.valid? # << returns true

url = Domainatrix.parse('http://www.test.madeupanddoesntexist')
url.valid? # << returns false

This could be done just by using a regular expression, however, also using the list of valid TLD's would be great.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant