From d091d2de28744de89167044a2857bfc35acf51b5 Mon Sep 17 00:00:00 2001 From: cp2004 <31997505+cp2004@users.noreply.github.com> Date: Thu, 31 Dec 2020 12:01:51 +0000 Subject: [PATCH] :bug: Improve firmware name splitting Marlin includes the build time in it's firmware name, until now the expression split it on the colon, and failed to do it properly. Example format that now works: ``` FIRMWARE_NAME:Marlin 2.0.7.2 (Nov 27 2020 14:30:11) ``` --- src/octoprint/util/comm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/octoprint/util/comm.py b/src/octoprint/util/comm.py index 00a2e6f13..2045c7e94 100644 --- a/src/octoprint/util/comm.py +++ b/src/octoprint/util/comm.py @@ -182,7 +182,7 @@ Groups will be as follows: * ``value``: reported position value """ -regex_firmware_splitter = re.compile(r"\s*([A-Z0-9_]+):\s*") +regex_firmware_splitter = re.compile(r"\s*([A-Z_]+):\s*") """Regex to use for splitting M115 responses.""" regex_resend_linenumber = re.compile(r"(N|N:)?(?P%s)" % regex_int_pattern)