From 5aeb864ef75765b26e1ea029ce7a7da4a7a0cce9 Mon Sep 17 00:00:00 2001 From: Faraphel Date: Fri, 15 Jul 2022 00:31:28 +0200 Subject: [PATCH] added a TODO about using regex to speed up the patch of bmg-edit --- source/mkw/Patch/PatchOperation.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/mkw/Patch/PatchOperation.py b/source/mkw/Patch/PatchOperation.py index 374812e..2055dff 100644 --- a/source/mkw/Patch/PatchOperation.py +++ b/source/mkw/Patch/PatchOperation.py @@ -355,6 +355,8 @@ class PatchOperation: self.template = template def patch_bmg(self, patch: "Patch", decoded_content: str) -> str: + # TODO : use regex in a better way to optimise speed + new_bmg_lines: list[str] = [] for line in decoded_content.split("\n"): if (match := re.match(r"^ {2}(?P.*?)\t= (?P.*)$", line, re.DOTALL)) is None: