Skip to content

Commit

Permalink
regex fix
Browse files Browse the repository at this point in the history
  • Loading branch information
davidvlaminck committed Nov 20, 2024
1 parent 4515e59 commit 10851f3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def __init__(self, naam: str, label: str, objectUri: str, definition: str, owner
@classmethod
def validate(cls, value, attribuut) -> bool:
if StringField.validate(value, attribuut):
return re.match('^[a-zA-Z0-9.\-_]*$', value) is not None
return re.match(r'^[a-zA-Z0-9.\-_]*$', value) is not None
else:
return False

Expand Down

0 comments on commit 10851f3

Please sign in to comment.