From 891a1dabf40ec0f7f752c27571a0244e8903dbcd Mon Sep 17 00:00:00 2001 From: Kyle <41976328+ImKyle4815@users.noreply.github.com> Date: Tue, 1 Mar 2022 20:08:12 -0800 Subject: [PATCH] Update creator-23.js --- js/creator-23.js | 1 + 1 file changed, 1 insertion(+) diff --git a/js/creator-23.js b/js/creator-23.js index be8d3bb0..65c1d548 100644 --- a/js/creator-23.js +++ b/js/creator-23.js @@ -1945,6 +1945,7 @@ function saveCard(saveFromFile) { cardKey = prompt('Enter the name you would like to save your card under:', cardKey); if (!cardKey) {return null;} } + cardKey = cardKey.trim(); if (cardKeys.includes(cardKey)) { if (!confirm('Would you like to overwrite your card previously saved as "' + cardKey + '"?\n(Clicking "cancel" will affix a version number)')) { var originalCardKey = cardKey;