Skip to content
Snippets Groups Projects
Commit 6ad5b661 authored by George Marchment's avatar George Marchment
Browse files

Small update

parent 1aa96827
No related branches found
No related tags found
No related merge requests found
Pipeline #14688 failed with stage
in 3 minutes and 41 seconds
...@@ -1629,8 +1629,11 @@ George Marchment, Bryan Brancotte, Marie Schmit, Frédéric Lemoine, Sarah Cohen ...@@ -1629,8 +1629,11 @@ George Marchment, Bryan Brancotte, Marie Schmit, Frédéric Lemoine, Sarah Cohen
code = code.replace("//Anker_clusters", new_code) code = code.replace("//Anker_clusters", new_code)
for old, new in channels_to_replace_outside_of_cluster: 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) code = replace_group1(code, pattern, new)
if(temp==code and old!=new):
raise Exception("The old wasn't update")
#code = code.replace(old, new) #code = code.replace(old, new)
#Since i've added the conditions myself -> i can just count them by searching for this simple pattern #Since i've added the conditions myself -> i can just count them by searching for this simple pattern
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment