马宇豪
2024-08-14 e3172de7866b5d04e4d3a4d5eea400c7b3eea227
1
2
3
4
'use strict';
const ansiRegex = require('ansi-regex');
 
module.exports = string => typeof string === 'string' ? string.replace(ansiRegex(), '') : string;