From 925e5410bcd96e48d7ad12bf0f451ba2f356ac77 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Thu, 25 May 2023 22:55:58 +0200 Subject: [PATCH] Continued: - return modified software name when no common separator was found --- fba.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fba.py b/fba.py index 96e7f29..6ccaf13 100644 --- a/fba.py +++ b/fba.py @@ -105,6 +105,9 @@ def remove_version(software: str) -> str: version = software.split("/")[-1] elif "-" in software: version = software.split("-")[-1] + else: + # NOISY-DEBUG: print(f"DEBUG: Was not able to find common seperator, returning untouched software='{software}'") + return software # Run match() matches = pattern.match(version) -- 2.39.5