A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/scm-rs/packageurl.rs/issues/21 below:

type lowercasing only occurs for mixed case · Issue #21 · scm-rs/packageurl.rs · GitHub

https://github.com/package-url/purl-spec/blob/c53ba0e2e249939f41ea6de1fa1984e8d831ef68/PURL-SPECIFICATION.rst?plain=1#L316

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