Skip to content

Commit 6ac92d9

Browse files
committed
fix spdx checker
1 parent 6267879 commit 6ac92d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SPDX.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def compare(file_, line_, correct):
9898
fail = True
9999
failed = True
100100
if not failed:
101-
license_name = line.split("SPDX-License-Identifier: ")[1][:-1]
101+
license_name = line.split("SPDX-License-Identifier: ")[1].strip()
102102
status["license"] = True
103103
if os.path.isfile(BUILD_DIR + f"/LICENSES/{license_name}.txt"):
104104
status["licensefile"] = True

0 commit comments

Comments
 (0)