From 10851f3e8b25d422fe6495929f00b88297ec7d9b Mon Sep 17 00:00:00 2001 From: davidvlaminck <“david.vlaminck@mow.vlaanderen.be”> Date: Wed, 20 Nov 2024 19:27:05 +0100 Subject: [PATCH] regex fix --- .../OtlmowModel/Classes/ImplementatieElement/AIMNaamObject.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/otlmow_model/OtlmowModel/Classes/ImplementatieElement/AIMNaamObject.py b/otlmow_model/OtlmowModel/Classes/ImplementatieElement/AIMNaamObject.py index 679a16971..ea58a85bd 100644 --- a/otlmow_model/OtlmowModel/Classes/ImplementatieElement/AIMNaamObject.py +++ b/otlmow_model/OtlmowModel/Classes/ImplementatieElement/AIMNaamObject.py @@ -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