Use short version format for app version

This commit is contained in:
Veronica Berglyd Olsen
2024-01-23 19:54:19 +01:00
parent 8a8a218e6b
commit b33a3b480d
3 changed files with 9 additions and 3 deletions
+5
View File
@@ -250,6 +250,11 @@ def formatTime(t: int) -> str:
return "ERROR"
def formatVersion(value: str) -> str:
"""Format a version number into a more human readable form."""
return value.lower().replace("a", " Alpha ").replace("b", " Beta ").replace("rc", " RC ")
# =============================================================================================== #
# String Functions
# =============================================================================================== #