From f5847f66bafd720b043849c64fdf23a4a995a86a Mon Sep 17 00:00:00 2001 From: Michael Townsend Date: Wed, 30 Oct 2013 18:20:32 -0400 Subject: [PATCH] Update engine.js --- script/engine.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/script/engine.js b/script/engine.js index 9d9dfdb..22d021f 100644 --- a/script/engine.js +++ b/script/engine.js @@ -231,7 +231,7 @@ var Engine = { Engine.saveGame(); var string64 = Base64.encode(localStorage.gameState); string64 = string64.replace(/\s/g, ''); - string64 = string64.replace(/\W/g, ''); + string64 = string64.replace(/\./g, ''); string64 = string64.replace(/\n/g, ''); prompt("save this.",string64); }, @@ -239,7 +239,7 @@ var Engine = { import64: function() { var string64 = prompt("put the save code here.",""); string64 = string64.replace(/\s/g, ''); - string64 = string64.replace(/\W/g, ''); + string64 = string64.replace(/\./g, ''); string64 = string64.replace(/\n/g, ''); var decodedSave = Base64.decode(string64); localStorage.gameState = decodedSave;