Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
91 changes: 36 additions & 55 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ tracing-subscriber = "0.3.20"
twox-hash = { version = "=2.1.0", features = ["std", "xxhash64"], default-features = false }
typed-arena = "=2.0.2"
url = { version = "2.5", features = ["serde", "expose_internals"] }
urlpattern = "0.3.0"
urlpattern = "=0.4.1"
uuid = { version = "1.3.0", features = ["v4"] }
walkdir = "=2.5.0"
weak-table = "0.3.2"
Expand Down
2 changes: 1 addition & 1 deletion ext/web/01_urlpattern.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ class URLPattern {
input = { __proto__: null };
}
options = webidl.converters.URLPatternOptions(
maybeOptions,
baseURLOrOptions,
prefix,
"Argument 2",
);
Expand Down
10 changes: 10 additions & 0 deletions tests/unit/urlpattern_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,13 @@
RegExp.prototype.exec = originalExec;
}
});

Deno.test(function urlPatternFlagsRegression() {
new URLPattern({ pathname: "/install(\.sh|\.ps1)" });
});

Deno.test(function urlPatternIgnoreCase() {
let p = new URLPattern({ pathname: "/test" }, { ignoreCase: true });

Check failure on line 72 in tests/unit/urlpattern_test.ts

View workflow job for this annotation

GitHub Actions / lint debug macos-x86_64

`p` is never reassigned

Check failure on line 72 in tests/unit/urlpattern_test.ts

View workflow job for this annotation

GitHub Actions / lint debug linux-x86_64

`p` is never reassigned

Check failure on line 72 in tests/unit/urlpattern_test.ts

View workflow job for this annotation

GitHub Actions / lint debug windows-x86_64

`p` is never reassigned
assert(p.test("/test", "http://localhost"));
assert(p.test("/TeSt", "http://localhost"));
});
Loading