Skip to content

Commit a3ae749

Browse files
Remove last dot from SCANOSS license findings.
1 parent f7c598b commit a3ae749

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/fosslight_source/_parsing_scanoss_file.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ def parsing_scanResult(scanoss_report):
5555
for license in findings[0]['licenses']:
5656

5757
license_lower = license['name'].lower()
58+
if license_lower.endswith('.'):
59+
license_lower = license_lower[:-1]
5860
for word in replace_word:
5961
if word in license_lower:
6062
license_lower = license_lower.replace(word, "")

0 commit comments

Comments
 (0)