From ca188fef8cd90d450cadb33bd8912be7c92b1fb6 Mon Sep 17 00:00:00 2001 From: Johannes Altmanninger Date: Wed, 1 Jul 2020 00:39:11 +0200 Subject: [PATCH] webconfig: fix regex --- share/tools/web_config/webconfig.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/tools/web_config/webconfig.py b/share/tools/web_config/webconfig.py index 3f10c70a2..739fb8d62 100755 --- a/share/tools/web_config/webconfig.py +++ b/share/tools/web_config/webconfig.py @@ -522,7 +522,7 @@ def append_html_for_ansi_escape(full_val, result, span_open): result.append("") # term256 foreground color - match = re.match("38;5;(\d+)", val) + match = re.match(r"38;5;(\d+)", val) if match is not None: close_span() html_color = html_color_for_ansi_color_index(int(match.group(1)))