diff --git a/src/components/nodes/components/NodeUrl.vue b/src/components/nodes/components/NodeUrl.vue index c06c4440f..ddcb044a6 100644 --- a/src/components/nodes/components/NodeUrl.vue +++ b/src/components/nodes/components/NodeUrl.vue @@ -5,7 +5,9 @@ :{{ port }} @@ -43,7 +45,7 @@ export default { let domain = null if (!isIP.value) { - const regex = /([^.]*)\.(.*)/ + const regex = /([^.]*)\.?(.*)/ const parts = hostname.value.match(regex) if (parts !== null) { name = parts[1]