Skip to content

Commit 519e73a

Browse files
committed
Replace unnecessary lower
1 parent c3dfd0f commit 519e73a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/fosslight_source/_parsing_scancode_file_item.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def parsing_file_item(scancode_file_list, has_error, need_matched_license=False)
4848

4949
prev_dir = ""
5050
prev_dir_value = False
51-
regex = re.compile(r'.*licenseref-(\S+)', re.IGNORECASE)
51+
regex = re.compile(r'licenseref-(\S+)', re.IGNORECASE)
5252

5353
if scancode_file_list:
5454
for file in scancode_file_list:
@@ -111,7 +111,7 @@ def parsing_file_item(scancode_file_list, has_error, need_matched_license=False)
111111
matched_txt = lic_item.get("matched_text", "")
112112
matched = regex.search(matched_txt)
113113
if matched:
114-
license_value = str(matched.group(1))
114+
license_value = str(matched.group())
115115
except Exception:
116116
pass
117117

0 commit comments

Comments
 (0)