diff --git a/download-latest-firmware-build.py b/download-latest-firmware-build.py
index 10e49740ee73aa29892dcd747193cf3e38e28c93..44e4c59fa8747526fb1b3563c4e03543471eb4a7 100755
--- a/download-latest-firmware-build.py
+++ b/download-latest-firmware-build.py
@@ -25,7 +25,7 @@ ap.add_argument("--branch", help="Download only builds of this branch")
 args = ap.parse_args()
 
 def find_version_from_archive(archive_file_list):
-    version_regex = re.compile(r'gluon-ffs-(((experimental|[0-9]+\.[0-9])+[+][0-9]{4}-[0-9]{2}-[0-9]{2})-g\.[a-f0-9]+-s\.[a-f0-9]+)-')
+    version_regex = re.compile(r'gluon-ffs-(((experimental|[0-9]+\.[0-9]+(\.[0-9]+)?)+[+][0-9]{4}-[0-9]{2}-[0-9]{2})-g\.[a-f0-9]+-s\.[a-f0-9]+)-')
     for file in archive_file_list:
         if file.filename.startswith("gluon/output/images"):
             filename = os.path.basename(file.filename)