diff options
| author | Jules <jules@asdf.us> | 2014-11-30 17:00:11 -0500 |
|---|---|---|
| committer | Jules <jules@asdf.us> | 2014-11-30 17:00:11 -0500 |
| commit | c1d0130e3c3b1e3c9f48e72a5566912d29d4f280 (patch) | |
| tree | 6b7590bc1b672b9866bf7e5e7f2912f95b688ede /js/matrix.js | |
| parent | cea658bee03c9dc1843916ccd3c49bd67481e3b2 (diff) | |
| parent | 7d80be2bf7bfb65719dff6437959509e12487078 (diff) | |
Merge branch 'master' of ghghgh.us:ascii
Diffstat (limited to 'js/matrix.js')
| -rw-r--r-- | js/matrix.js | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/js/matrix.js b/js/matrix.js index 81ced3e..96421ff 100644 --- a/js/matrix.js +++ b/js/matrix.js @@ -114,10 +114,15 @@ Matrix.prototype.mirc = function () { Matrix.prototype.irssi = function(){ var txt = this.mirc() .replace(/\%/g, '%%') + .replace(/\\/g, '\\') .replace(/\"/g, '\\\"') + .replace(/\'/g, '\\\'') .replace(/\`/g, '\\\`') - .replace(/\\n/g, '\\n') - .replace(/\x03/g, '\\x03') + .replace(/\s+\n/g, '\n') + .replace(/\s+$/g, '\n') + .replace(/\n/g, '\\n') + .replace(/\x03/g, '\\x03'); + console.log(txt) return '/exec -out printf "' + txt + '"\n' } Matrix.prototype.expand = function(i){ |
