From 129d26532fb97a2d12c5c7f81b722576b903b52c Mon Sep 17 00:00:00 2001 From: Dpeta <69427753+Dpeta@users.noreply.github.com> Date: Fri, 17 Feb 2023 00:12:34 +0100 Subject: [PATCH] Comment out broken tag types. ( Fixes a possible remote exception trigger :"3 ) --- parsetools.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/parsetools.py b/parsetools.py index f3e499b..cdf1d1f 100644 --- a/parsetools.py +++ b/parsetools.py @@ -27,7 +27,7 @@ PchumLog = logging.getLogger("pchumLogger") QString = str _ctag_begin = re.compile(r"(?i)") -_gtag_begin = re.compile(r"(?i)") +# _gtag_begin = re.compile(r"(?i)") _ctag_end = re.compile(r"(?i)") _ctag_rgb = re.compile(r"\d+,\d+,\d+") _urlre = re.compile(r"(?i)(?:^|(?<=\s))(?:(?:https?|ftp)://|magnet:)[^\s]+") @@ -37,8 +37,8 @@ _handlere = re.compile(r"(\s|^)(@[A-Za-z0-9_]+)") _imgre = re.compile(r"""(?i)""") _mecmdre = re.compile(r"^(/me|PESTERCHUM:ME)(\S*)") _oocre = re.compile(r"([\[(\{])\1.*([\])\}])\2") -_format_begin = re.compile(r"(?i)<([ibu])>") -_format_end = re.compile(r"(?i)") +# _format_begin = re.compile(r"(?i)<([ibu])>") +# _format_end = re.compile(r"(?i)") _honk = re.compile(r"(?i)\bhonk\b") _groupre = re.compile(r"\\([0-9]+)") @@ -288,7 +288,7 @@ def lexMessage(string: str): lexlist = [ (mecmd, _mecmdre), (colorBegin, _ctag_begin), - (colorBegin, _gtag_begin), + # (colorBegin, _gtag_begin), (colorEnd, _ctag_end), # karxi: Disabled this for now. No common versions of Pesterchum # actually use it, save for Chumdroid...which shouldn't.