From 7b1a5c859ef5ae3c727a6f3fdbce548abe76cdf4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rajmund=20Hru=C5=A1ka?= <rajmund.hruska@cesnet.cz> Date: Mon, 27 Jun 2022 08:08:47 +0000 Subject: [PATCH] Fix: Use raw string in regexp. (Fixes #1) --- idea/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/idea/base.py b/idea/base.py index e5e2342..db5151b 100644 --- a/idea/base.py +++ b/idea/base.py @@ -26,7 +26,7 @@ event_tag_re = re.compile(r"^[a-zA-Z0-9_-]+(?:\.[a-zA-Z0-9_-]+)?$") tag_re = re.compile(r"^[a-zA-Z0-9_-]+$") timestamp_re = re.compile(r"^([0-9]{4})-([0-9]{2})-([0-9]{2})[Tt ]([0-9]{2}):([0-9]{2}):([0-9]{2})(?:\.([0-9]+))?([Zz]|(?:[+-][0-9]{2}:[0-9]{2}))$") -duration_re = re.compile("(?:([0-9]+)[Dd])?([0-9]{2}):([0-9]{2}):([0-9]{2})(?:\.([0-9]+))?$") +duration_re = re.compile(r"(?:([0-9]+)[Dd])?([0-9]{2}):([0-9]{2}):([0-9]{2})(?:\.([0-9]+))?$") def source_target_dict_typedef(flavour, list_flavour, addon=None): -- GitLab