mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-30 18:24:03 +00:00
Fix: Fix hostname with dash
This commit is contained in:
parent
2eab919ae0
commit
a96a515087
1 changed files with 1 additions and 1 deletions
|
@ -238,7 +238,7 @@ export default {
|
||||||
// Source: https://stackoverflow.com/questions/106179/regular-expression-to-match-dns-hostname-or-ip-address
|
// Source: https://stackoverflow.com/questions/106179/regular-expression-to-match-dns-hostname-or-ip-address
|
||||||
// Modified to disallow IP addresses with port
|
// Modified to disallow IP addresses with port
|
||||||
// eslint-disable-next-line
|
// eslint-disable-next-line
|
||||||
hostnameRegexPattern: "^((([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\\.]*[a-zA-Z0-9]\\.))*([A-Za-z]|[A-Za-z0-9][A-Za-z0-9\-]*[A-Za-z]))$"
|
hostnameRegexPattern: "^((([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\\-\\.]*[a-zA-Z0-9]\\.))*([A-Za-z]|[A-Za-z0-9][A-Za-z0-9\-]*[A-Za-z]))$"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue