Skip to content

Commit

Permalink
reset last index
Browse files Browse the repository at this point in the history
  • Loading branch information
gtm-nayan committed May 27, 2023
1 parent f2b3e13 commit 0078ce6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ export default function stripAnsi(string) {
throw new TypeError(`Expected a \`string\`, got \`${typeof string}\``);
}

re.lastIndex = 0;
return string.replace(re, '');
}

0 comments on commit 0078ce6

Please sign in to comment.