pub fn license_id(name: &str) -> Option<LicenseId>
Expand description
Attempts to find a LicenseId
for the string. Note that any +
at the
end is trimmed when searching for a match.
assert!(spdx::license_id("MIT").is_some());
assert!(spdx::license_id("BitTorrent-1.1+").is_some());