Skip to content

Commit b676909

Browse files
committed
spdx: Disable allow_unknown parse mode
1 parent c254c0f commit b676909

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/licenses.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ const PARSE_MODE: spdx::ParseMode = spdx::ParseMode {
55
allow_imprecise_license_names: false,
66
allow_postfix_plus_on_gpl: true,
77
allow_deprecated: true,
8+
allow_unknown: false,
89
};
910

1011
pub fn parse_license_expr(s: &str) -> Result<Expression, ParseError> {

0 commit comments

Comments
 (0)