diff options
author | Maxim Devaev <[email protected]> | 2022-04-02 10:19:29 +0300 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2022-04-02 10:39:50 +0300 |
commit | bd8984dd0633d953f09a9f09e0d6bf9999e9c4db (patch) | |
tree | a4afcc37b6118671ee04992ab5f3ab3750d8c2ef /kvmd/validators | |
parent | f1e9f33c137ef7f46563b69e892959435425b498 (diff) |
otgconf gpio plugin
Diffstat (limited to 'kvmd/validators')
-rw-r--r-- | kvmd/validators/ugpio.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kvmd/validators/ugpio.py b/kvmd/validators/ugpio.py index e70e2590..6f32a26f 100644 --- a/kvmd/validators/ugpio.py +++ b/kvmd/validators/ugpio.py @@ -42,7 +42,7 @@ def valid_ugpio_driver(arg: Any, variants: Optional[Set[str]]=None) -> str: def valid_ugpio_channel(arg: Any) -> str: name = "GPIO channel" - return check_len(check_re_match(arg, name, r"^[a-zA-Z_][a-zA-Z0-9_-]*$"), name, 255) + return check_len(check_re_match(arg, name, r"^[a-zA-Z_][a-zA-Z0-9_.-]*$"), name, 255) def valid_ugpio_mode(arg: Any, variants: Set[str]) -> str: |