aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--space.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/space.js b/space.js
index 3fc14f4..86bd067 100644
--- a/space.js
+++ b/space.js
@@ -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