]> git.mxchange.org Git - fba.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Thu, 2 Nov 2023 00:17:52 +0000 (01:17 +0100)
committerRoland Häder <roland@mxchange.org>
Thu, 2 Nov 2023 00:17:52 +0000 (01:17 +0100)
- maybe also -rc came here

fba/helpers/version.py

index 2f54ab3fed637a0ec1b0412c763fa4488345c800..b6f7c6468463a1103ef120e6cda291ddf9ebd03f 100644 (file)
@@ -28,7 +28,7 @@ patterns = [
     # non-sematic, e.g. 1.2.3.4
     re.compile(r"^(?P<version>v|V{0,1})(\.{0,1})(?P<major>0|[1-9]\d*)\.(?P<minor>0+|[1-9]\d*)(\.(?P<patch>0+|[1-9]\d*)(\.(?P<subpatch>0|[1-9]\d*))?)$"),
     # non-sematic, e.g. 2023-05[-dev]
-    re.compile(r"^(?P<year>[1-9]{1}[0-9]{3})\.(?P<month>[0-9]{2})(-dev){0,1}$"),
+    re.compile(r"^(?P<year>[1-9]{1}[0-9]{3})\.(?P<month>[0-9]{2})(-[a-z]+){0,1}$"),
     # non-semantic, e.g. abcdef0
     re.compile("^[a-f0-9]{7}$"),
 ]