1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/fluffychat_ynh.git synced 2024-09-03 18:36:04 +02:00

fix regex

This commit is contained in:
OniriCorpe 2024-02-26 03:22:58 +01:00
parent c4a15178a4
commit 7299693f5e

View file

@ -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://'."