From 7299693f5ea23cd53aa077e67bb386346298d6cd Mon Sep 17 00:00:00 2001 From: OniriCorpe Date: Mon, 26 Feb 2024 03:22:58 +0100 Subject: [PATCH] fix regex --- config_panel.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config_panel.toml b/config_panel.toml index 2a32a20..1f1f871 100644 --- a/config_panel.toml +++ b/config_panel.toml @@ -21,5 +21,5 @@ help = "Here you can easily configure some things about your Fluffychat instance help.en = "This option changes the default Matrix server on the Fluffychat login page." help.fr = "Cette option modifie le serveur Matrix renseigné par défaut sur la page de connexion de Fluffychat." type = "string" - pattern.regexp = '^([-?a-zA-Z0-9]\.?){1,256}[a-zA-Z0-9]{1,6}$' + pattern.regexp = '^([-?a-zA-Z0-9]\.?){1,256}(\.[a-zA-Z0-9]{1,6}){1}$' pattern.error = "Must be a domain name or a sub-domain. Must not start with 'http://' or 'https://'."