diff options
| author | Jules Laplace <jules@okfoc.us> | 2015-03-11 20:53:57 -0400 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2015-03-11 20:53:57 -0400 |
| commit | 33605bd8d7cdaaa97e97f1891b655848c0f4763b (patch) | |
| tree | b76074c26aae507e83e086d3686e49e3e74407f2 | |
| parent | ddf3eab0b847bf687a7a364aee7b7b645810980f (diff) | |
dont prefix zeroes so aggressively
| -rw-r--r-- | js/lex.js | 5 | ||||
| -rw-r--r-- | js/matrix.js | 2 |
2 files changed, 2 insertions, 5 deletions
@@ -41,13 +41,10 @@ Lex.prototype.sanitize = function(){ var fgOnly = false Lex.prototype.mirc = function(){ var char = this.char || " " - if (parseInt(char)) { - char = "\x02\x02" + char - } if (fgOnly) { return "\x03" + (this.fg&15) + char } - if ((this.bg&15) < 10) { + if ((this.bg&15) < 10 && parseInt(char)) { return "\x03" + (this.fg&15) + ",0" + (this.bg&15) + char } else { diff --git a/js/matrix.js b/js/matrix.js index 33c0b00..08f5a79 100644 --- a/js/matrix.js +++ b/js/matrix.js @@ -188,7 +188,7 @@ Matrix.prototype.irssi = function(){ .replace(/\'/g, '\\\'') .replace(/\`/g, '\\\`') .replace(/\$/g, '\\$') - .replace(/\n\s+/g, '\n') + // .replace(/\n\s+/g, '\n') // .replace(/\s+$/g, '\n') // .replace(/^\n+/, '') .replace(/\n/g, '\\n') |
