From 8db642fd48ee34f1357d7c21f7aa45965576ce82 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Wed, 8 Sep 2021 19:57:20 -0400 Subject: [PATCH] Trim strings in substitute_tags --- strange_eons_to_arkhamdb.js | 1 + 1 file changed, 1 insertion(+) diff --git a/strange_eons_to_arkhamdb.js b/strange_eons_to_arkhamdb.js index a15db72..6c84094 100644 --- a/strange_eons_to_arkhamdb.js +++ b/strange_eons_to_arkhamdb.js @@ -82,6 +82,7 @@ function leftPad(str, len, fill) { function build_card(component) { function substitute_tags(str) { + str = str.trim(); str = str.replace("", String(component.getName())); for (tag in tag_replacements) {