Philipp Horstenkamp 67796af83c
Some checks failed
Lint / pre-commit Linting (push) Failing after 51s
Reinstalled with --fix
2023-11-26 16:51:02 +01:00

7 lines
161 B
JavaScript

'use strict';
var ansiRegex = require('ansi-regex')();
module.exports = function (str) {
return typeof str === 'string' ? str.replace(ansiRegex, '') : str;
};