Skip to content

Commit

Permalink
test: add a case for bad package URLs starting with numbers
Browse files Browse the repository at this point in the history
Signed-off-by: hi-rustin <[email protected]>
  • Loading branch information
Rustin170506 committed Dec 11, 2023
1 parent 442636b commit 4dc1178
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/cargo/util_schemas/core/package_id_spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -602,5 +602,6 @@ mod tests {
.is_err());
assert!(PackageIdSpec::parse("@1.2.3").is_err());
assert!(PackageIdSpec::parse("registry+https://github.com").is_ok());
assert!(PackageIdSpec::parse("https://crates.io/1foo#1.2.3").is_ok())
}
}

0 comments on commit 4dc1178

Please sign in to comment.