Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
matchers/cargo: Allow SPDX expressions
Using a regex that is similar to the one in lib/licensee/matchers/spdx.rb in allowing spaces and parens. Parens aren't currently supported by Cargo's crates.io backing [1,2], but that's hopefully a temporary limitation. And Cargo/crates.io already supports OR forms [3]. Ideally licensee would return the full license expression in these cases instead of 'other' [4]. But since that conversion is happening outside the matcher, this commit isn't making that any worse (although it means this test isn't quite a unit test). [1]: ehuss/license-exprs#3 [2]: rust-lang/cargo@c89dd64 [3]: rust-lang/cargo#4920 [4]: licensee#244
- Loading branch information