Append the type
string to the purl
as an unencoded lowercase ASCII string
use packageurl::PackageUrl;
fn main() {
let right = PackageUrl::new("CArGO","abcdefg").unwrap();
println!("CArGO converted to {}", right.ty());
let wrong = PackageUrl::new("CARGO","abcdefg").unwrap();
println!("CARGO converted to {}", wrong.ty());
}
CArGO converted to cargo
CARGO converted to CARGO
In other words, the required step of converting CARGO
to an unencoded lowercase ASCII string didn't occur.
Maybe in purl.rs !t.chars().all
should be t.chars().any
and all instances of !n.chars().all
should be n.chars().any
?
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4