Skip to content

Commit 7fef8c0

Browse files
committed
Allow whitespace in package.license
Allow e.g. `license = "MIT / Apache-2.0"` rather than just `license = "MIT/Apache-2.0"`. (This is completely untested.)
1 parent acef39a commit 7fef8c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/krate.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ impl Crate {
188188
match license {
189189
Some(license) => {
190190
let ok = license.split('/').all(|l| {
191-
KNOWN_LICENSES.binary_search_elem(&l).found().is_some()
191+
KNOWN_LICENSES.binary_search_elem(&l.trim()).found().is_some()
192192
});
193193
if ok {
194194
Ok(())

0 commit comments

Comments
 (0)