mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 16:29:51 +03:00
max 48 chars
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
const hostnameLengthRegex = /^.{0,32}$/
|
const hostnameLengthRegex = /^.{0,48}$/
|
||||||
const hostnamePatternRegex = /^(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9])\.)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9-]*[A-Za-z0-9])$/
|
const hostnamePatternRegex = /^(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9])\.)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9-]*[A-Za-z0-9])$/
|
||||||
|
|
||||||
export default function isHostname(hostname: string) {
|
export default function isHostname(hostname: string) {
|
||||||
|
|||||||
Reference in New Issue
Block a user