diff options
Diffstat (limited to 'kvmd/validators/kvm.py')
-rw-r--r-- | kvmd/validators/kvm.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/kvmd/validators/kvm.py b/kvmd/validators/kvm.py index 0f0e68cf..fe9a8a8e 100644 --- a/kvmd/validators/kvm.py +++ b/kvmd/validators/kvm.py @@ -91,6 +91,10 @@ def valid_hid_mouse_wheel(arg: Any) -> int: # ===== +def valid_ugpio_driver(arg: Any) -> str: + return check_re_match(arg, "GPIO driver", r"^[a-zA-Z_][a-zA-Z0-9_-]*$")[:255] + + def valid_ugpio_mode(arg: Any) -> str: return check_string_in_list(arg, "GPIO mode", ["input", "output"]) |