Skip to content

URLPattern panic #13394

@AaronO

Description

@AaronO

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 correctly

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions