From 3b97b0734af0ad9d566bfd6674481fae6d1afa05 Mon Sep 17 00:00:00 2001
From: George Marchment <georgemarchment@yahoo.fr>
Date: Thu, 13 Mar 2025 12:11:35 +0100
Subject: [PATCH] Fixed a bug which i added by mistake before (by removing the
 things around parentheses)

---
 src/operation.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/operation.py b/src/operation.py
index 624a630..afba839 100644
--- a/src/operation.py
+++ b/src/operation.py
@@ -318,7 +318,7 @@ class Operation(Executor):
             def replace(text):
                 def replacer(match):
                     return match.group(0).replace(match.group(0), match.group(1))
-                return re.sub(f"\(\s*({pattern})\s*\)", replacer, text)
+                return re.sub(f"[^\w\s] *\(\s*({pattern})\s*\)", replacer, text)
             operation = replace(operation)
 
 
-- 
GitLab