ajustement tiret et apostrophe

This commit is contained in:
Francois Pelletier 2023-04-18 09:52:50 -04:00
parent eb1d4a95ee
commit 69c854f1ad

View file

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