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)

This commit is contained in:
Hermes Agent 2026-08-08 02:17:43 +00:00
parent 2fde40293c
commit 7b16bfc948

View File

@ -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