This commit is contained in:
Christopher Jeffrey 2013-02-22 11:12:05 -06:00
parent d04c335aa9
commit a784ca6a2b

View File

@ -423,7 +423,7 @@ Tput.prototype._compile = function(val) {
if (ch.length < 2) ch = '0' + ch; if (ch.length < 2) ch = '0' + ch;
ch = '\\x' + ch; ch = '\\x' + ch;
} else { } else {
ch = ''; ch = '^' + cap[1];
} }
break; break;
} }
@ -485,7 +485,7 @@ Tput.prototype._compile = function(val) {
} }
// 3 octal digits -> character // 3 octal digits -> character
if (read(/^\\(\d\d\d)/)) { if (read(/^\\(\d{3})/)) {
print('\\' + ch); print('\\' + ch);
continue; continue;
} }