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):