fix(hermes): repair sonar/atlasbot/python:S6353/AZ2y3T38Ky9i4pkIpSiW #5

Open
bstein wants to merge 1 commits from hermes-repair/sonar-AZ2y3T38Ky9i4pkIpSiW into main

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