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

had to do the same thing with the channels

parent 01108655
No related branches found
No related tags found
No related merge requests found
Pipeline #14446 failed with stage
in 2 minutes and 54 seconds
......@@ -312,16 +312,19 @@ class Operation(Executor):
#================================
pattern_emit_name = constant.EMIT_NAME
patterns = [pattern_emit_tab, pattern_emit_name]
first_call = True
for pattern in patterns:
#Replace the emits around parenthese by just the emits
for pattern in patterns+[r"\w+"]:
#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"\(({pattern})\)", replacer, text)
return re.sub(f"\(\s*({pattern})\s*\)", replacer, text)
operation = replace(operation)
first_call = True
for pattern in patterns:
#================================
#Case channel1 = emits
#================================
......
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