From e7af1d7f2f760749d80c68b38d7383816b17dbe4 Mon Sep 17 00:00:00 2001 From: OniriCorpe Date: Mon, 26 Feb 2024 03:26:49 +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 1f1f871..be15513 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}){1}$' + 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://'."