Comments (2)
For reference, the URL spec's handling of this is at https://url.spec.whatwg.org/#scheme-start-state
from urlpattern.
There are some other examples that may be relevant from the URL spec:
e.g. new URLPattern("hello:world", "https://example.com/")
resolves to {protocol:"https", hostname:"example.com", pathname:"/hello:world"}
but it should have protocol hello
and path world
.
e.g. new URLPattern("urn:isbn:9780307476463")
resolves to {protocol:"urn:isbn", hostname:"", pathname:"9780307476463"}
but it should have protocol urn
and path isbn:9780307476463
from urlpattern.
Related Issues (20)
- Custom named full-wildcard HOT 2
- Base URL and empty pathname in URLPatternInit
- Incorrect handling of base URL in URLPatternInit processing HOT 10
- Loose base URL check can crash URL parser HOT 5
- Handling of special character in hostname
- More consistent and robust segment wilcard generation
- Incorrect type in group name assignment
- "Hostname pattern is an IPv6 address" called with `null` HOT 1
- The way to integrate the API without depending on ECMAScript realm. HOT 3
- Accept URL as the match algorithm's input. HOT 4
- Opaque Host and domain encoding HOT 6
- Multiple same-named groups within the same URL component HOT 5
- delimiter characters not included in component parts HOT 6
- Does not tolerate `+` in protocol HOT 7
- Make it clearer that parentheses are needed to use regex's
- Anchor permanence for external URL Pattern integration? HOT 1
- Cannot capture default port in a named group HOT 10
- Suggestion to Add Translated Link for urlpattern (Simplified Chinese įŽäŊä¸æ)
- Globstar `**` causes exponential runtime behavior HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
đ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. đđđ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google â¤ī¸ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from urlpattern.