From f00f81c7fee8367f6c076339ad3bbea2966929f3 Mon Sep 17 00:00:00 2001 From: Rett Berg Date: Thu, 28 Mar 2024 14:15:40 -0500 Subject: [PATCH] fix #51: use raw string for \S string --- python/mta_core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/mta_core.py b/python/mta_core.py index 47fd958..1d2dec8 100644 --- a/python/mta_core.py +++ b/python/mta_core.py @@ -81,7 +81,7 @@ def PacifyHtmlComments( text ): with the mapping of string offset to Vim line/column.""" def replacement( match ): - return re.sub( '\S', 'x', match.group() ) + return re.sub( r'\S', 'x', match.group() ) return COMMENT_REGEX.sub( replacement, text )