Skip to content

Commit 5ccc949

Browse files
committed
update crates and tests
1 parent 85ef22d commit 5ccc949

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ license = "MIT"
99

1010
[dependencies]
1111
derive_more = "0.99.16"
12-
url = "2.2.2"
13-
regex = "1.4.3"
12+
url = "2.5.2"
13+
regex = "1.10.5"
1414
serde = { version = "1.0.127", features = ["derive"] }
1515
unic-ucd-ident = { version = "0.9.0", features = ["id"] }
1616

src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ fn is_absolute_pathname(
202202
/// // Match the pattern against a URL.
203203
/// let url = "https://example.com/users/123".parse().unwrap();
204204
/// let result = pattern.exec(UrlPatternMatchInput::Url(url)).unwrap().unwrap();
205-
/// assert_eq!(result.pathname.groups.get("id").unwrap(), "123");
205+
/// assert_eq!(result.pathname.groups.get("id").unwrap().as_ref().unwrap(), "123");
206206
///# }
207207
/// ```
208208
#[derive(Debug)]

src/testdata/urlpatterntestdata.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2425,7 +2425,6 @@
24252425
"expected_obj": "error"
24262426
},
24272427
{
2428-
"skip": "bug in rust-url: https://github.com/servo/rust-url/pull/718",
24292428
"pattern": [{ "hostname": "bad|hostname" }],
24302429
"expected_obj": "error"
24312430
},
@@ -2627,6 +2626,7 @@
26272626
}
26282627
},
26292628
{
2629+
"skip": "only works in ecmascript variety of regex",
26302630
"pattern": [{ "pathname": "*{}**?" }],
26312631
"inputs": [{ "pathname": "foobar" }],
26322632
"expected_obj": {

0 commit comments

Comments
 (0)