Skip to content

Commit 4dc1178

Browse files
committed
test: add a case for bad package URLs starting with numbers
Signed-off-by: hi-rustin <rustin.liu@gmail.com>
1 parent 442636b commit 4dc1178

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/cargo/util_schemas/core/package_id_spec.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -602,5 +602,6 @@ mod tests {
602602
.is_err());
603603
assert!(PackageIdSpec::parse("@1.2.3").is_err());
604604
assert!(PackageIdSpec::parse("registry+https://github.com").is_ok());
605+
assert!(PackageIdSpec::parse("https://crates.io/1foo#1.2.3").is_ok())
605606
}
606607
}

0 commit comments

Comments
 (0)