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

Fix #4 Implemented auth support and with exception for mailto scheme #7

Closed
wants to merge 1 commit into from

Conversation

ruiG
Copy link

@ruiG ruiG commented Aug 16, 2017

I followed the regex suggested by @kevva and I added the necessary exception for the case of a mailto uri scheme.

implemented auth support and with exeption for mailto scheme
@sindresorhus
Copy link
Owner

The referenced issue have an unanswered question. What if a username is mailto?

This pull request also needs a proper title.

@ruiG
Copy link
Author

ruiG commented Aug 18, 2017

The referenced issue have an unanswered question. What if a username is mailto?

There is just not enough info in the URI to distinguish between the two different URI schemes that have a somewhat overlapping syntax.

Specially in cases where the scheme doesn't require // before its authority part.

@ruiG ruiG changed the title Fix #4 Fix #4 Implemented auth support and with exception for mailto scheme Aug 18, 2017
@sindresorhus
Copy link
Owner

@ruiG Yes, that's exactly what #4 (comment) says.

@sindresorhus
Copy link
Owner

Closing for the above reason. See #4 (comment)

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

Successfully merging this pull request may close these issues.

2 participants