From: Roland Häder Date: Thu, 25 May 2023 20:55:58 +0000 (+0200) Subject: Continued: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=925e5410bcd96e48d7ad12bf0f451ba2f356ac77;p=fba.git Continued: - return modified software name when no common separator was found --- 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)