From: Roland Häder Date: Thu, 2 Nov 2023 00:17:52 +0000 (+0100) Subject: Continued: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=95de01217f82150efec546f6c441f75b9fbb9d76;p=fba.git Continued: - maybe also -rc came here --- diff --git a/fba/helpers/version.py b/fba/helpers/version.py index 2f54ab3..b6f7c64 100644 --- a/fba/helpers/version.py +++ b/fba/helpers/version.py @@ -28,7 +28,7 @@ patterns = [ # non-sematic, e.g. 1.2.3.4 re.compile(r"^(?Pv|V{0,1})(\.{0,1})(?P0|[1-9]\d*)\.(?P0+|[1-9]\d*)(\.(?P0+|[1-9]\d*)(\.(?P0|[1-9]\d*))?)$"), # non-sematic, e.g. 2023-05[-dev] - re.compile(r"^(?P[1-9]{1}[0-9]{3})\.(?P[0-9]{2})(-dev){0,1}$"), + re.compile(r"^(?P[1-9]{1}[0-9]{3})\.(?P[0-9]{2})(-[a-z]+){0,1}$"), # non-semantic, e.g. abcdef0 re.compile("^[a-f0-9]{7}$"), ]