From ba5b5daf4d051a88afd129fe5917b194cf1dd339 Mon Sep 17 00:00:00 2001 From: iopapamanoglou Date: Thu, 29 Aug 2024 13:33:41 +0200 Subject: [PATCH] fix lookahead refactor --- src/faebryk/tools/refactor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/faebryk/tools/refactor.py b/src/faebryk/tools/refactor.py index aa4e7eb2..80e005b0 100644 --- a/src/faebryk/tools/refactor.py +++ b/src/faebryk/tools/refactor.py @@ -74,7 +74,7 @@ def refactor_file(path: Path): text = re.sub( rf"^\s*from faebryk.library.{sym} import \(\n\s*{sym},\n\)$", "", text ) - text = re.sub(rf"([^F][^.])\b{sym}\b", f"\1F.{sym}", text) + text = re.sub(rf"(?