fix: Regex didn't match entire string

This commit is contained in:
Inex Code 2024-07-18 20:58:44 +04:00
parent 27420cc8f6
commit ed342e08a3

View file

@ -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(