Skip to content

Commit

Permalink
Fix unicode error
Browse files Browse the repository at this point in the history
  • Loading branch information
imestevez committed Sep 15, 2023
1 parent cbc3e97 commit 8c90c93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mod/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def operate_val(val):

def has_special_char(text: str) -> bool:
"""Checks if a given text includes special characters and spaces"""
regex = re.compile('[ @!#$%^&*()<>?`´\'|}{~áéíóúàèìòùÁÉÍÓÚÀÈÌÒÙ]')
regex = re.compile('[ @!#$%^&*()<>?`\'|}{~]')
if regex.search(text) is None:
return False
return True

0 comments on commit 8c90c93

Please sign in to comment.