From 4839ec393793d331d1012f1826e4934934fc5fec Mon Sep 17 00:00:00 2001 From: Stewie Date: Sun, 3 Jul 2022 09:10:17 -0400 Subject: [PATCH] Take all the characters until > symbol --- ToolsTales.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ToolsTales.py b/ToolsTales.py index 9e79f41..7bf52ec 100644 --- a/ToolsTales.py +++ b/ToolsTales.py @@ -559,7 +559,7 @@ class ToolsTales: for line in splitLineBreak: string_hex = re.split(self.HEX_TAG, line) string_hex = [sh for sh in string_hex if sh] - + for s in string_hex: if re.match(self.HEX_TAG, s): bytesFinal += struct.pack("B", int(s[1:3], 16)) @@ -567,12 +567,13 @@ class ToolsTales: s_com = re.split(self.COMMON_TAG, s) s_com = [sc for sc in s_com if sc] for c in s_com: + if re.match(self.COMMON_TAG, c): if ":" in c: split = c.split(":") if split[0][1:] in self.itags.keys(): bytesFinal += struct.pack("B", self.itags[split[0][1:]]) - bytesFinal += struct.pack("=2 and i