Term spacing between player name and message

This commit is contained in:
Andrew 2022-05-14 20:53:18 -05:00
parent 63ca08e072
commit 30618c7456

View File

@ -70,9 +70,7 @@ class AjaxHandler(BaseHandler):
for line in data:
try:
line = re.sub(
"(\033\\[(0;)?[0-9]*[A-z]?(;[0-9])?m?)|(> )", "", line
)
line = re.sub("(\033\\[(0;)?[0-9]*[A-z]?(;[0-9])?m?)", "", line)
line = re.sub("[A-z]{2}\b\b", "", line)
line = self.helper.log_colors(html.escape(line))
self.write(f"{line}<br />")