We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0510ec3 commit df8cda2Copy full SHA for df8cda2
lib/utils/stripAnsi.js
@@ -2,7 +2,6 @@
2
* This code is based on the strip-ansi library by Chalk.
3
* Source: https://github.com/chalk/strip-ansi
4
*/
5
-
6
function ansiRegex({ onlyFirst = false } = {}) {
7
const pattern = [
8
'[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)',
0 commit comments