From cc32ca04949d5d27e3e2ca8398566614105e7d6e Mon Sep 17 00:00:00 2001 From: Bardia Moshiri Date: Thu, 14 Nov 2024 17:44:51 -0500 Subject: [PATCH] fix: allow spaces in dbus property names Signed-off-by: Bardia Moshiri --- src/dbus_fast/validators.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dbus_fast/validators.py b/src/dbus_fast/validators.py index f35ccd4c..b2feee89 100644 --- a/src/dbus_fast/validators.py +++ b/src/dbus_fast/validators.py @@ -10,7 +10,7 @@ _bus_name_re = re.compile(r"^[A-Za-z_-][A-Za-z0-9_-]*$") _path_re = re.compile(r"^[A-Za-z0-9_]+$") -_element_re = re.compile(r"^[A-Za-z_][A-Za-z0-9_]*$") +_element_re = re.compile(r"^[A-Za-z_][A-Za-z0-9_ ]*$") _member_re = re.compile(r"^[A-Za-z_][A-Za-z0-9_-]*$")