diff options
Diffstat (limited to 'space.js')
-rw-r--r-- | space.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -64,7 +64,7 @@ function Space(){ }; this.print = function(){ - return this.data.map(row => replace(replace(replace(row,'&','\\&'),'\\','\\\\'),'','&').join('')).join('\n'); + return this.data.map(row => replace(replace(replace(row.slice(),'&','\\&'),'\\','\\\\'),'','&').join('')).join('\n'); } this.fromfile = function(filename){ //Reads an external file into internal data |