Skip to content

Commit

Permalink
forgot about spaces, gg
Browse files Browse the repository at this point in the history
  • Loading branch information
pixepchief committed Jun 23, 2024
1 parent 7b97040 commit a11940a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deck/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ fetch('cards.json')
const placeholderImage = 'https://orangejuice.wiki/w/images/Images/100OrangeJuice_images/2/2d/Back_0.png';

function encodeDeck(deck) {
return deck.map(card => card ? card.name : '').join(',');
return deck.map(card => card ? card.name.replace(/\s+/g, '_') : '').join(',');
}

function decodeDeck(encodedDeck) {
Expand Down

0 comments on commit a11940a

Please sign in to comment.