Use unicode escape sequences instead of octal

The latter is illegal in strict mode.
This commit is contained in:
Jonas Westerlund 2012-07-04 23:18:33 +02:00 committed by Nathan Rajlich
parent 4cfdc57712
commit c7bc4cacde

View File

@ -162,8 +162,8 @@ function stylizeWithColor(str, styleType) {
var style = styles[styleType];
if (style) {
return '\033[' + colors[style][0] + 'm' + str +
'\033[' + colors[style][1] + 'm';
return '\u001b[' + colors[style][0] + 'm' + str +
'\u001b[' + colors[style][1] + 'm';
} else {
return str;
}