File tree 1 file changed +2
-2
lines changed
src/spdx_tools/spdx/validation
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ def validate_license_expression(
40
40
)
41
41
42
42
validation_messages = []
43
- license_ref_ids : List [str ] = [license_ref .license_id for license_ref in document .extracted_licensing_info ]
43
+ license_ref_ids : List [str ] = [license_ref .license_id . lower () for license_ref in document .extracted_licensing_info ]
44
44
45
45
for non_spdx_token in spdx_licensing .validate (license_expression ).invalid_symbols :
46
46
if ":" in non_spdx_token :
@@ -72,7 +72,7 @@ def validate_license_expression(
72
72
)
73
73
)
74
74
75
- elif non_spdx_token not in license_ref_ids :
75
+ elif non_spdx_token . lower () not in license_ref_ids :
76
76
validation_messages .append (
77
77
ValidationMessage (
78
78
f"Unrecognized license reference: { non_spdx_token } . license_expression must only use IDs from the "
You can’t perform that action at this time.
0 commit comments