diff --git a/src/common/settings.json b/src/common/settings.json index 5702450f7..5214f08b4 100644 --- a/src/common/settings.json +++ b/src/common/settings.json @@ -50,7 +50,7 @@ "help": "List of the virtual hosts served by bunkerweb.", "id": "server-name", "label": "Server name", - "regex": "^(((?!.*\\.\\.)(?![^\\s]{256,})([A-Za-z0-9]([A-Za-z0-9\\-]*[A-Za-z0-9])?\\.)+[A-Za-z]{2,63})(?!.*\\s\\2(\\s|$)))?(\\s(((?!.*\\.\\.)(?![^\\s]{256,})([A-Za-z0-9]([A-Za-z0-9\\-]*[A-Za-z0-9])?\\.)+[A-Za-z]{2,63}))(?!.*\\s\\5(\\s|$)))*$", + "regex": "^((?!.*\\.\\.)([^\\s]{1,256})(?!.*\\s\\2(\\s|$)))?(\\s(((?!.*\\.\\.))([^\\s]{1,256})(?!.*\\s\\7(\\s|$))))*$", "type": "text" }, "WORKER_PROCESSES": {