From d0f6bf3e0634020130e6efa8b44a086bed6ecead Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Mon, 22 Feb 2021 18:53:45 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Allow=20numbers,=20but=20not=20a?= =?UTF-8?q?t=20the=20start?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 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 2045c7e94..36921a7b6 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-Z_]+):\s*") +regex_firmware_splitter = re.compile(r"\s*([A-Z][A-Z0-9_]*):\s*") """Regex to use for splitting M115 responses.""" regex_resend_linenumber = re.compile(r"(N|N:)?(?P%s)" % regex_int_pattern)