summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2015-03-01 02:54:44 -0500
committerJules Laplace <jules@okfoc.us>2015-03-01 02:54:44 -0500
commit3d01a6a266b2430ab9d4168f7d0d7a80b558beea (patch)
tree4ce280facd497ffeb9313842835d5f7f445feba4
parentcc327f927920ad18e3725e89eefbfa03bba3d5e6 (diff)
dont trim whitespace
-rw-r--r--js/matrix.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/js/matrix.js b/js/matrix.js
index a8ac200..4f3f870 100644
--- a/js/matrix.js
+++ b/js/matrix.js
@@ -157,7 +157,7 @@ Matrix.prototype.ascii = function () {
row.forEach(function(lex, x) {
line += lex.ascii()
})
- return line.replace(/\s+$/,"")
+ return line // .replace(/\s+$/,"")
})
var txt = lines.join("\n")
return txt
@@ -188,9 +188,9 @@ Matrix.prototype.irssi = function(){
.replace(/\'/g, '\\\'')
.replace(/\`/g, '\\\`')
.replace(/\$/g, '\\$')
- .replace(/\s+\n/g, '\n')
- .replace(/\s+$/g, '\n')
- .replace(/^\n+/, '')
+ // .replace(/\s+\n/g, '\n')
+ // .replace(/\s+$/g, '\n')
+ // .replace(/^\n+/, '')
.replace(/\n/g, '\\n')
.replace(/\x02/g, '\\x02')
.replace(/\x03/g, '\\x03')