From 6ad5b6611135e991a40b23265a7290ab0179f94b Mon Sep 17 00:00:00 2001
From: George Marchment <georgemarchment@yahoo.fr>
Date: Fri, 9 May 2025 10:48:15 +0200
Subject: [PATCH] Small update

---
 src/workflow.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/workflow.py b/src/workflow.py
index 30433b1..612bd0e 100644
--- a/src/workflow.py
+++ b/src/workflow.py
@@ -1629,8 +1629,11 @@ George Marchment, Bryan Brancotte, Marie Schmit, Frédéric Lemoine, Sarah Cohen
                     code = code.replace("//Anker_clusters", new_code)
 
                     for old, new in channels_to_replace_outside_of_cluster:
-                        pattern= fr"[ \(,]({re.escape(old)})[^\w]"
+                        pattern= fr"[\s\(,]({re.escape(old)})[^\w]"
+                        temp = code
                         code = replace_group1(code, pattern, new)
+                        if(temp==code and old!=new):
+                            raise Exception("The old wasn't update")
                         #code = code.replace(old, new)
 
                     #Since i've added the conditions myself -> i can just count them by searching for this simple pattern
-- 
GitLab