diff options
| -rw-r--r-- | src/components/Tile.vue | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/components/Tile.vue b/src/components/Tile.vue index fe60aa6..ddf2fc0 100644 --- a/src/components/Tile.vue +++ b/src/components/Tile.vue @@ -48,7 +48,11 @@ export default defineComponent({ }, displayName(): string { if (this.tolNode.commonName != null){ - return "'" + capitalizeWords(this.tolNode.commonName) + "'"; + let newName = capitalizeWords(this.tolNode.commonName) + if (/^['"].*['"]$/.test(newName) == false){ + newName = "'" + newName + "'"; + } + return newName; } else { return capitalizeWords(this.layoutNode.name); } |
