🐛 Allow numbers, but not at the start

This commit is contained in:
Gina Häußge authored and GitHub committed 2021-02-22 18:53:45 +01:00
1 parent d091d2de28
commit d0f6bf3e06
1 file changed
+1 -1
+1 -1
View File
@@ -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<n>%s)" % regex_int_pattern)