Make python Regex Strings raw to avoid py3.12 SyntaxError
This commit is contained in:
@@ -201,7 +201,7 @@ class MacroParser:
|
||||
def _cleanup_comment(self):
|
||||
"""Remove HTML from the comment line, and truncate it at 512 characters."""
|
||||
|
||||
self.parse_results["comment"] = re.sub("<.*?>", "", self.parse_results["comment"])
|
||||
self.parse_results["comment"] = re.sub(r"<.*?>", "", self.parse_results["comment"])
|
||||
if len(self.parse_results["comment"]) > 512:
|
||||
self.parse_results["comment"] = self.parse_results["comment"][:511] + "…"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user