Correction détection de mots
This commit is contained in:
parent
391eeffe53
commit
eb1d4a95ee
1 changed files with 1 additions and 1 deletions
2
main.py
2
main.py
|
@ -31,7 +31,7 @@ def only_alphanumerics(text):
|
|||
"""
|
||||
Detects if the text contains only alphanumerics.
|
||||
"""
|
||||
return re.search("[^a-zA-Z0-9]", text) is None
|
||||
return re.search(r"\W", text) is None
|
||||
|
||||
|
||||
def make_bold_part(token):
|
||||
|
|
Loading…
Add table
Reference in a new issue