From c7bc4cacde163f916b62f196194ff5c1cabb61a2 Mon Sep 17 00:00:00 2001 From: Jonas Westerlund Date: Wed, 4 Jul 2012 23:18:33 +0200 Subject: [PATCH] Use unicode escape sequences instead of octal The latter is illegal in strict mode. --- lib/util.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/util.js b/lib/util.js index 65888920c8..53775e74da 100644 --- a/lib/util.js +++ b/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; }