From 15679545e44544ca244002b093f86d741ce05546 Mon Sep 17 00:00:00 2001 From: kert Date: Thu, 12 Nov 2026 03:19:19 -0500 Subject: [PATCH] =?UTF-8?q?fix(pfs):=20lineage=20=E2=80=94=20'replacing=20?= =?UTF-8?q?X=20with'=20names=20successors?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pfs/lineage.py | 2 +- tests/pfs/test_lineage.py | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/src/pfs/lineage.py b/src/pfs/lineage.py index bf5123c..018dc9b 100644 --- a/src/pfs/lineage.py +++ b/src/pfs/lineage.py @@ -146,7 +146,7 @@ _CODE = r"(?:[A-Z]\d{4}|\d{5})" _SUCCESSOR = re.compile( r"\b(into)\b(?!\s+(?:account|consideration|effect))" r"|\bmerg\w*\b[^.]{0,120}?\b(with|into)\b" - r"|\breplaced\s+(?:it\s+)?(by|with)\b" + r"|\brepl(?:aced|acing)\b[^.]{0,80}?\b(by|with)\b" r"|\bcrosswalk(?:ed)?\s+(to)\b" r"|\b(with)\s+the\b[^.]{0,60}\bremaining\b" r"|(?