Skip to content

Commit b68801c

Browse files
committed
Merge pull request #32 from SimonSapin/patch-1
Allow whitespace in package.license
2 parents acef39a + 7fef8c0 commit b68801c

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)