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

Update the extraction of the origins

parent 3f6c892c
No related branches found
No related tags found
No related merge requests found
Pipeline #14526 failed with stage
in 2 minutes and 46 seconds
......@@ -382,13 +382,11 @@ class Operation(Executor):
#Replace the emits and channels around parenthese by just themselves (without the parantheses)
def replace(text):
def replacer(match):
return match.group(0).replace(match.group(0), match.group(1))
return re.sub(f"[^\w\s] *\(\s*({pattern})\s*\)", replacer, text)
return match.group(0).replace(match.group(1), match.group(2))
return re.sub(fr"[^\w\s] *(\(\s*({pattern})\s*\))", replacer, text)
operation = replace(operation)
first_call = True
for pattern in patterns:
......
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