From fc12f2627ba855a2cdc2314c64f7423461cc504a Mon Sep 17 00:00:00 2001 From: Kara Alexandra Date: Thu, 6 Mar 2025 10:44:51 -0600 Subject: [PATCH] Update regex strings to be raw strings --- Text.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Text.py b/Text.py index f9a2ddd0..9a1dd716 100644 --- a/Text.py +++ b/Text.py @@ -643,7 +643,7 @@ class MultiByteCoreTextMapper(object): linespace = wrap line = lines.pop(0) - match = re.search('^\{[A-Z0-9_:]+\}$', line) + match = re.search(r'^\{[A-Z0-9_:]+\}$', line) if match: if line == '{PAGEBREAK}': if lineindex % 3 != 0: @@ -662,13 +662,13 @@ class MultiByteCoreTextMapper(object): while words: word = words.pop(0) - match = re.search('^(\{[A-Z0-9_:]+\}).*', word) + match = re.search(r'^(\{[A-Z0-9_:]+\}).*', word) if match: start_command = match.group(1) outbuf.extend(cls.special_commands[start_command]) word = word.replace(start_command, '') - match = re.search('(\{[A-Z0-9_:]+\})\.?$', word) + match = re.search(r'(\{[A-Z0-9_:]+\})\.?$', word) if match: end_command = match.group(1) word = word.replace(end_command, '')