From ed342e08a36813ea099a4d0f77ba0f09bc78cdaa Mon Sep 17 00:00:00 2001 From: Inex Code Date: Thu, 18 Jul 2024 20:58:44 +0400 Subject: [PATCH] fix: Regex didn't match entire string --- selfprivacy_api/services/forgejo/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(