Skip to content

Commit 474768c

Browse files
authored
Merge pull request #95 from fosslight/develop
Remove the last dot from the result in scanoss license finding
2 parents 14abf59 + a3ae749 commit 474768c

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)