Compare commits
1 Commits
main
...
hermes-rep
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7b16bfc948 |
@ -143,7 +143,7 @@ def _parse_group_line(line: str) -> dict[str, list[str]]:
|
|||||||
inner = value[value.find("(") + 1 : value.rfind(")")]
|
inner = value[value.find("(") + 1 : value.rfind(")")]
|
||||||
nodes = [item.strip() for item in inner.split(",") if item.strip()]
|
nodes = [item.strip() for item in inner.split(",") if item.strip()]
|
||||||
if not nodes:
|
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()]
|
nodes = [item.strip() for item in cleaned.split(",") if item.strip()]
|
||||||
groups[key.strip()] = nodes
|
groups[key.strip()] = nodes
|
||||||
return groups
|
return groups
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user