From 99c5e4a5015f0e3efe41427543dc9cd827bd8366 Mon Sep 17 00:00:00 2001 From: Michael Osipov Date: Fri, 14 Nov 2025 19:57:12 +0100 Subject: [PATCH] Use raw strings for regex --- gwh/helpers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gwh/helpers.py b/gwh/helpers.py index 0c60a46..63b2d2c 100644 --- a/gwh/helpers.py +++ b/gwh/helpers.py @@ -17,11 +17,11 @@ def get_issue_labels(self, issue): def parse_commit_labels(self, message, labels): # get the issue numbers - issue_pat = re.compile('#(\d+)') + issue_pat = re.compile(r'#(\d+)') iid_match = issue_pat.findall(message) # get the labels - label_pat = re.compile('([\~\+\-])(' + '|'.join(labels) + ')') + label_pat = re.compile(r'([\~\+\-])(' + '|'.join(labels) + ')') label_match = label_pat.findall(message) return { 'issues': iid_match,