From ef4fe5493f00d086cd15a1f0f2cbbd62a7fc81b4 Mon Sep 17 00:00:00 2001 From: Markus Opolka <markus@martialblog.de> Date: Wed, 19 Dec 2018 15:52:30 +0100 Subject: [PATCH] Fix bug in comment display --- src/components/Letter.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/components/Letter.vue b/src/components/Letter.vue index 8e7a5dd..c99de39 100644 --- a/src/components/Letter.vue +++ b/src/components/Letter.vue @@ -109,6 +109,11 @@ export default { }, formatText (text) { // Remove [Stuff] from text + + if (text instanceof Array) { + text = text.join(' ') + } + if (!this.showComments) { text = text.replace(/\[.*\]/, '') } -- GitLab