Browse Source

Use unicode escape sequences instead of octal

The latter is illegal in strict mode.
v0.8.7-release
Jonas Westerlund 13 years ago
committed by Nathan Rajlich
parent
commit
c7bc4cacde
  1. 4
      lib/util.js

4
lib/util.js

@ -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;
}

Loading…
Cancel
Save