From 473eebb028183b4b2d809002ee4e551d725261ce Mon Sep 17 00:00:00 2001 From: George Marchment <georgemarchment@yahoo.fr> Date: Fri, 21 Mar 2025 11:38:43 +0100 Subject: [PATCH] Update putting back the modified operations --- src/code_.py | 2 +- src/workflow.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/code_.py b/src/code_.py index 079e167..0ab7136 100644 --- a/src/code_.py +++ b/src/code_.py @@ -20,9 +20,9 @@ class Code: self.code_wo_comments = re.sub(constant.DOUBLE_BACKSLAPSH_JUMP, ' ', self.code_wo_comments) self.code_wo_comments = re.sub(constant.BACKSLAPSH_JUMP, ' ', self.code_wo_comments) self.code_wo_comments = self.code_wo_comments.replace("||", "$OR$") - self.code_wo_comments = self.add_triple_quote_inside_map(self.code_wo_comments ) self.code_wo_comments = self.turn_single_condition_into_multiline(self.code_wo_comments) self.code_wo_comments = self.rewrite_ternary_operation_to_normal_condition(self.code_wo_comments) + self.code_wo_comments = self.add_triple_quote_inside_map(self.code_wo_comments ) self.code_wo_comments = self.rewrite_jump_dot(self.code_wo_comments) diff --git a/src/workflow.py b/src/workflow.py index 985858c..96a5aca 100644 --- a/src/workflow.py +++ b/src/workflow.py @@ -452,7 +452,7 @@ George Marchment, Bryan Brancotte, Marie Schmit, Frédéric Lemoine, Sarah Cohen searching = False for match in re.finditer(r"\.(\w+)_modified\s*\{\s*¤\'\'\'([^¤]+)¤\s*\}", code): operator = match.group(1) - inside = match.group(2)[2:-3]#Cause we want to remove the extras '''...''' + inside = match.group(2)[:-3]#Cause we want to remove the extras ...''' code = code.replace(match.group(0), f".{operator} {{ {inside} }}") searching = True break -- GitLab