Skip to content

Commit

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

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

0 comments on commit c16c6bc

Please sign in to comment.