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