diff options
| -rw-r--r-- | js/lex.js | 2 | ||||
| -rw-r--r-- | js/matrix.js | 4 |
2 files changed, 3 insertions, 3 deletions
@@ -39,7 +39,7 @@ Lex.prototype.ascii = function(){ } Lex.prototype.sanitize = function(){ switch (this.char) { - case "%": return "%" +// case "%": return "%" case undefined: case "": return " " default: return this.char diff --git a/js/matrix.js b/js/matrix.js index 9f89643..9ec3a06 100644 --- a/js/matrix.js +++ b/js/matrix.js @@ -220,7 +220,7 @@ Matrix.prototype.irssi = function(){ // .replace(/\%/g, '%%') .replace(/\\/g, '\\x5C') .replace(/\"/g, '\\\"') - .replace(/\'/g, '\\\'') + // .replace(/\'/g, '\\\'') .replace(/\`/g, '\\\`') .replace(/\$/g, '\\$') // .replace(/\n\s+/g, '\n') @@ -247,5 +247,5 @@ Matrix.prototype.irssi = function(){ escaped_txt += txt[i] } } - return "/exec -out printf '%b' '" + escaped_txt + "'\n" + return '/exec -out printf "%b" "' + escaped_txt + '"\n' } |
