From feb0b7436651a0e1eaff87ea4bf85aa3d6383bea Mon Sep 17 00:00:00 2001 From: aineo <124525926+aineo@users.noreply.github.com> Date: Fri, 28 Jun 2024 13:07:17 +0300 Subject: [PATCH] fix: incorrect url formatting for localhost on coin nodes --- src/components/nodes/components/NodeUrl.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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]