From cea8ac49caa5418aa960da6b3616efef37fa0751 Mon Sep 17 00:00:00 2001 From: A_D Date: Sun, 2 Aug 2020 13:43:20 +0200 Subject: [PATCH] Ensured that regexps are raw strings Ensures that there are no weird excaping issues --- plugins/eddn.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/eddn.py b/plugins/eddn.py index c6a109a8..0875c007 100644 --- a/plugins/eddn.py +++ b/plugins/eddn.py @@ -57,7 +57,7 @@ class EDDN: REPLAYPERIOD = 400 # Roughly two messages per second, accounting for send delays [ms] REPLAYFLUSH = 20 # Update log on disk roughly every 10 seconds TIMEOUT = 10 # requests timeout - MODULE_RE = re.compile('^Hpt_|^Int_|Armour_', re.IGNORECASE) + MODULE_RE = re.compile(r'^Hpt_|^Int_|Armour_', re.IGNORECASE) CANONICALISE_RE = re.compile(r'\$(.+)_name;') def __init__(self, parent):