Update to latest ansi-styles
This commit is contained in:
parent
a66c486301
commit
879defda72
4 changed files with 8 additions and 9 deletions
2
chalk.js
2
chalk.js
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue