Skip to content

Commit

Permalink
Merge pull request #638 from Adamant-im/fix/incorrect-url-for-localho…
Browse files Browse the repository at this point in the history
…st-on-coin-nodes

fix: Incorrect URL formatting for localhost on Coin Nodes tab
  • Loading branch information
bludnic authored Jun 29, 2024
2 parents d58889d + 8565ea0 commit b6c1e3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/nodes/components/NodeUrl.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<template v-else>
<span :class="classes.nodeName">{{ nodeHost.name }}</span>
<span :class="classes.domain">.{{ nodeHost.domain }}</span>
<span v-if="nodeHost.domain" :class="classes.domain">.{{ nodeHost.domain }}</span>
</template>

<span v-if="port" :class="classes.port">:{{ port }}</span>
Expand Down Expand Up @@ -43,7 +43,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]
Expand Down

0 comments on commit b6c1e3e

Please sign in to comment.