Skip to content

Commit

Permalink
[api] Output plain text with no formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
mmalecki committed Nov 28, 2011
1 parent 53671e8 commit d84bed6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/ansiparse.js
Expand Up @@ -4,7 +4,7 @@ ansiparse = function (str) {
//
var matchingControl = null,
matchingData = null,
matchingText = null,
matchingText = '',
ansiState = [],
result = [],
state = {};
Expand Down Expand Up @@ -119,6 +119,10 @@ ansiparse = function (str) {
matchingText += str[i];
}
}

if (matchingText) {
result.push({ text: matchingText });
}
return result;
}

Expand Down

0 comments on commit d84bed6

Please sign in to comment.