From 69c854f1ad0104779eb5a0aef66d8a8fab47b286 Mon Sep 17 00:00:00 2001 From: Francois Pelletier Date: Tue, 18 Apr 2023 09:52:50 -0400 Subject: [PATCH] ajustement tiret et apostrophe --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index c9665af..7a2c9f1 100644 --- a/main.py +++ b/main.py @@ -31,7 +31,7 @@ def only_alphanumerics(text): """ Detects if the text contains only alphanumerics. """ - return re.search(r"\W", text) is None + return re.search(r"[^\w\'\-]", text) is None def make_bold_part(token):