mirror of
https://github.com/less/less.js.git
synced 2026-02-07 21:45:08 -05:00
Remove trailing ANSI escape sequences in no-color mode
Added a 'reset' code to the stylize function and changed the previously hard-coded ANSI escape sequence string to a function call.
This commit is contained in:
@@ -70,6 +70,7 @@ function toCSS(path, callback) {
|
||||
// Stylize a string
|
||||
function stylize(str, style) {
|
||||
var styles = {
|
||||
'reset' : [0, 0],
|
||||
'bold' : [1, 22],
|
||||
'inverse' : [7, 27],
|
||||
'underline' : [4, 24],
|
||||
|
||||
Reference in New Issue
Block a user