Skip to content

Commit

Permalink
Change regexp from [^\0]* to [\s\S]* for better performance
Browse files Browse the repository at this point in the history
  • Loading branch information
mantoni committed Sep 16, 2014
1 parent ba95ca1 commit b4b0a05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ansi_up.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@

// Do proper handling of sequences (aka - injest vi split(';') into state machine
//match,codes,txt = text.match(/([\d;]+)m(.*)/m);
var matches = text.match(/([\d;]*)m([^\0]*)/m);
var matches = text.match(/([\d;]*)m([\s\S]*)/m);

if (!matches) return text;

Expand Down

0 comments on commit b4b0a05

Please sign in to comment.