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: Improve scheme support in fromUrl #130

Merged
merged 1 commit into from Sep 2, 2021

Conversation

benshu
Copy link
Contributor

@benshu benshu commented Aug 4, 2021

URI scheme is defined in RFC 3986 and allows the following characters (-+*.) and schemes such as 'android-app' and more.
A full list of IANA registered schemes can be found here: IANA URI Schemes

This PR fixes the urlPattern used in fromUrl function to support valid schemes.

@jhnns jhnns self-requested a review September 2, 2021 15:54
Copy link
Member

@jhnns jhnns left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, this change makes total sense 👍
You've even added tests, thank you ❤️

@jhnns jhnns changed the title Improve scheme support to adhere to RFC3986 https://datatracker.ietf.org/doc/html/rfc3986\#section-3.1 fix: Improve scheme support in fromUrl Sep 2, 2021
@jhnns jhnns merged commit 4c10202 into peerigon:master Sep 2, 2021
github-actions bot pushed a commit that referenced this pull request Sep 2, 2021
## [3.0.4](v3.0.3...v3.0.4) (2021-09-02)

### Bug Fixes

* Improve scheme support in `fromUrl` ([4c10202](4c10202)), closes [#section-3](https://github.com/peerigon/parse-domain/issues/section-3) [#130](#130)
@github-actions
Copy link

github-actions bot commented Sep 2, 2021

🎉 This PR is included in version 3.0.4 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

None yet

2 participants