From 7b16bfc9485fbacdc2259f796ef9595bbf8fb848 Mon Sep 17 00:00:00 2001 From: Hermes Agent Date: Sat, 8 Aug 2026 02:17:43 +0000 Subject: [PATCH] fix(hermes): Uses the concise digit character class required by the rule without changing the matched input or surrounding logic. (incident sonar/atlasbot/python:S6353/AZ2y3T38Ky9i4pkIpSiW) --- atlasbot/engine/answerer/spine.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/atlasbot/engine/answerer/spine.py b/atlasbot/engine/answerer/spine.py index 3f9c80c..fffb90a 100644 --- a/atlasbot/engine/answerer/spine.py +++ b/atlasbot/engine/answerer/spine.py @@ -143,7 +143,7 @@ def _parse_group_line(line: str) -> dict[str, list[str]]: inner = value[value.find("(") + 1 : value.rfind(")")] nodes = [item.strip() for item in inner.split(",") if item.strip()] if not nodes: - cleaned = re.sub(r"^[0-9]+", "", value).strip() + cleaned = re.sub(r"^\d+", "", value).strip() nodes = [item.strip() for item in cleaned.split(",") if item.strip()] groups[key.strip()] = nodes return groups