From a96a515087b3943c35f275166597b52d2669605a Mon Sep 17 00:00:00 2001 From: Nelson Chan Date: Tue, 21 Sep 2021 18:44:32 +0800 Subject: [PATCH] Fix: Fix hostname with dash --- src/pages/EditMonitor.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/EditMonitor.vue b/src/pages/EditMonitor.vue index 85691921a..4e212e19d 100644 --- a/src/pages/EditMonitor.vue +++ b/src/pages/EditMonitor.vue @@ -238,7 +238,7 @@ export default { // Source: https://stackoverflow.com/questions/106179/regular-expression-to-match-dns-hostname-or-ip-address // Modified to disallow IP addresses with port // 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]))$" } },