Update to latest ansi-styles

This commit is contained in:
Sindre Sorhus 2013-12-08 01:02:35 +01:00
parent a66c486301
commit 879defda72
4 changed files with 8 additions and 9 deletions

View file

@ -38,7 +38,7 @@ function init() {
return self._styles.reduce(function (str, name) {
var code = ansi[name];
return code[0] + (str || '') + code[1];
return code.open + (str || '') + code.close;
}, str);
}, styles);