]> git.mxchange.org Git - fba.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Thu, 25 May 2023 20:55:58 +0000 (22:55 +0200)
committerRoland Häder <roland@mxchange.org>
Thu, 25 May 2023 21:13:21 +0000 (23:13 +0200)
- return modified software name when no common separator was found

fba.py

diff --git a/fba.py b/fba.py
index 96e7f294ac2bdb53a4a5961367b4839f9e7b13d3..6ccaf13791780048ee0de82cb04ab433900db6a1 100644 (file)
--- 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)