From f51e1cb2c4582e36641d1324ca4ec5d4ec6053d0 Mon Sep 17 00:00:00 2001 From: Lars Date: Sun, 11 Jan 2026 12:03:36 +0100 Subject: [PATCH] Fix regex pattern in parse_edges_robust to support multiple leading '>' characters for edge callouts, enhancing flexibility in edge parsing. --- app/core/chunking/chunking_parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/core/chunking/chunking_parser.py b/app/core/chunking/chunking_parser.py index 2423acb..1d5acdb 100644 --- a/app/core/chunking/chunking_parser.py +++ b/app/core/chunking/chunking_parser.py @@ -224,7 +224,7 @@ def parse_edges_robust(text: str) -> List[Dict[str, Any]]: current_edge_type = None for line in lines: stripped = line.strip() - callout_match = re.match(r'>\s*\[!edge\]\s*([^:\s]+)', stripped) + callout_match = re.match(r'>+\s*\[!edge\]\s*([^:\s]+)', stripped) if callout_match: current_edge_type = callout_match.group(1).strip().lower() # Links in der gleichen Zeile des Callouts