From 67be80a59876a1834c9def68b62250bfecce2a4a Mon Sep 17 00:00:00 2001 From: Mindiell Date: Wed, 26 Jun 2024 09:15:03 +0200 Subject: [PATCH] =?UTF-8?q?Utilisation=20d'une=20chaine=20sp=C3=A9cifique?= =?UTF-8?q?=20pour=20les=20expressions=20rationnelles?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hooks/collective_subject.py | 4 ++-- hooks/individual_subject.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hooks/collective_subject.py b/hooks/collective_subject.py index e8db092..6ad929e 100644 --- a/hooks/collective_subject.py +++ b/hooks/collective_subject.py @@ -8,8 +8,8 @@ class CollectiveSubject: """ Si la commande est bonne, le bot démarre un nouveau sujet collectif. """ - if re.match("^\s*##.*$", message): - logger.info("^\s*##.*$ caught.") + if re.match(r"^\s*##.*$", message): + logger.info(r"^\s*##.*$ caught.") if bot.review.is_started: if bot.review.is_owner(sender): diff --git a/hooks/individual_subject.py b/hooks/individual_subject.py index 1fae22b..4b88991 100644 --- a/hooks/individual_subject.py +++ b/hooks/individual_subject.py @@ -8,8 +8,8 @@ class IndividualSubject: """ Si la commande est bonne, le bot démarre un nouveau sujet individuel. """ - if re.match("^\s*#[^#].*$", message): - logger.info("^\s*#[^#].*$ caught.") + if re.match(r"^\s*#[^#].*$", message): + logger.info(r"^\s*#[^#].*$ caught.") if bot.review.is_started: if bot.review.is_owner(sender):