We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0952545 + 5d97671 commit efe9643Copy full SHA for efe9643
firmware/common/scripts/prompt.py
@@ -27,7 +27,7 @@
27
print("//\n//\tThis file is automatically generated\n//")
28
print("#define PROMPT \"Morpheus Firmware: {0}\\r\"".format(version))
29
30
-m = re.match("^v(\\d+)\\.(\\d+)\\.(\\d+).*$",plainVersion+".0")
+m = re.match("^v(\\d+)\\.(\\d+)\\.(\\d+).*$",plainVersion.replace("-",".")+".0")
31
assert m is not None,"Cannot parse version string "+plainVersion
32
33
print("#define VERSION_MAJOR ({0})".format(m.group(1)))
0 commit comments