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;