-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Closed
Labels
bugSomething isn't working correctlySomething isn't working correctly
Description
Minimal reproduction
new URLPattern({ pathname: '/:a.' })
Expected behaviour
Running the reproduction case in Chrome yields:
URLPattern {
hash: "*"
hostname: "*"
password: "*"
pathname: "/:a."
port: "*"
protocol: "*"
search: "*"
username: "*"
}
Cause
This happens because of an .unwrap()
in our rust-urlpattern
crate: https://github.com/denoland/rust-urlpattern/blob/fdb0bbb45613b346cb1bfef57c16fc8af97fa1ff/src/component.rs#L195
Metadata
Metadata
Assignees
Labels
bugSomething isn't working correctlySomething isn't working correctly