diff --git a/selfprivacy_api/services/forgejo/__init__.py b/selfprivacy_api/services/forgejo/__init__.py index 89c6641..ddea493 100644 --- a/selfprivacy_api/services/forgejo/__init__.py +++ b/selfprivacy_api/services/forgejo/__init__.py @@ -27,7 +27,7 @@ class Forgejo(Service): id="subdomain", default_value="git", description="Subdomain", - regex=r"[A-Za-z0-9][A-Za-z0-9\-]{0,61}[A-Za-z0-9]", + regex=r"^[A-Za-z0-9][A-Za-z0-9\-]{0,61}[A-Za-z0-9]$", widget="subdomain", ), "appName": StringServiceConfigItem(