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

Magnet URI Validation? #877

Closed
irazasyed opened this issue Aug 9, 2018 · 2 comments
Closed

Magnet URI Validation? #877

irazasyed opened this issue Aug 9, 2018 · 2 comments

Comments

@irazasyed
Copy link

Trying to get magnet validation. I'm able to do it with regex but would rather have it supported by isURL().

One of my use cases is to let the user input either a full URL with HTTP/S protocol or accept Magnet URI like: magnet:?xt=urn:btih:<HASH>

Is this already supported or if not, can we please add? If not within the isURL, then maybe another function. Thanks!

Adibla pushed a commit to Adibla/validator.js that referenced this issue Aug 21, 2018
chriso added a commit that referenced this issue Aug 21, 2018
@chriso
Copy link
Collaborator

chriso commented Aug 21, 2018

Fixed by #884

@chriso chriso closed this as completed Aug 21, 2018
@irazasyed
Copy link
Author

Awesome, Thanks!

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

No branches or pull requests

2 participants