diff --git a/script/engine.js b/script/engine.js index 0dd2ef6..9cdc1e9 100644 --- a/script/engine.js +++ b/script/engine.js @@ -235,6 +235,8 @@ var Engine = { import64: function() { var string64 = prompt("put the save code here.",""); + string64 = string64.replace(/\s/g, ''); + string64 = string64.replace(/\W/g, ''); var decodedSave = Base64.decode(string64); localStorage.gameState = decodedSave; location.reload();