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

Fixed a bug which i added by mistake before (by removing the things around parentheses)

parent 27db03f0
No related branches found
No related tags found
No related merge requests found
Pipeline #14448 failed with stage
in 2 minutes and 18 seconds
......@@ -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)
......
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