From a3ae749d818cd9ed870c73116536fcbb6bc087d9 Mon Sep 17 00:00:00 2001 From: Wonjae Park Date: Tue, 18 Oct 2022 16:22:51 +0900 Subject: [PATCH] Remove last dot from SCANOSS license findings. --- src/fosslight_source/_parsing_scanoss_file.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/fosslight_source/_parsing_scanoss_file.py b/src/fosslight_source/_parsing_scanoss_file.py index 3cee5b6..1ffad9c 100644 --- a/src/fosslight_source/_parsing_scanoss_file.py +++ b/src/fosslight_source/_parsing_scanoss_file.py @@ -55,6 +55,8 @@ def parsing_scanResult(scanoss_report): for license in findings[0]['licenses']: license_lower = license['name'].lower() + if license_lower.endswith('.'): + license_lower = license_lower[:-1] for word in replace_word: if word in license_lower: license_lower = license_lower.replace(word, "")