diff --git a/sync_seen_from_table.py b/sync_seen_from_table.py index a287ab5..b3be164 100644 --- a/sync_seen_from_table.py +++ b/sync_seen_from_table.py @@ -39,8 +39,8 @@ def parse_table_data(file_path: str) -> List[Tuple[str, str]]: continue # Match lines with: ... - # Pattern: whitespace + number + whitespace + account + whitespace + ig_post_id (with optional suffix) - m = re.search(r"\s*(\d+)\s+([A-Za-z0-9._]+)\s+(\d+)(?:_\d+)?\s", line) + # Pattern: whitespace/tabs + number + whitespace/tabs + account + whitespace/tabs + ig_post_id (with optional suffix) + m = re.search(r"\s*(\d+)\s+([A-Za-z0-9._]+)\s+(\d+)(?:_\d+)?", line) if m: _, account, ig_id = m.groups() rows.append((account, ig_id))