Skip to content

Commit

Permalink
fix regex str in NaamField
Browse files Browse the repository at this point in the history
  • Loading branch information
davidvlaminck committed Nov 25, 2024
1 parent dfd80f2 commit 5bb4a6b
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 5bb4a6b

Please sign in to comment.