diff options
Diffstat (limited to 'kvmd/validators/net.py')
-rw-r--r-- | kvmd/validators/net.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/kvmd/validators/net.py b/kvmd/validators/net.py index 991540bd..c45b3aed 100644 --- a/kvmd/validators/net.py +++ b/kvmd/validators/net.py @@ -116,3 +116,8 @@ def valid_ssl_ciphers(arg: Any) -> str: except Exception as err: raise ValidatorError(f"The argument {arg!r} is not a valid {name}: {err}") return arg + + +def valid_url(arg: Any) -> str: + # XXX: VERY primitive + return check_re_match(arg, "HTTP(S) URL", r"^https?://[\[\w]+\S*") |