Plato on Github
Report Home
node_modules/cli-color/trim.js
Maintainability
92.52
Lines of code
6
Difficulty
4.67
Estimated Errors
0.03
Function weight
By Complexity
By SLOC
// Trim formatting from string 'use strict'; var r = new RegExp('\x1b(?:\\[(?:\\d+[ABCDEFGJKSTm]|\\d+;\\d+[Hfm]|' + '\\d+;\\d+;\\d+m|6n|s|u|\\?25[lh])|\\w)', 'g'); module.exports = function (str) { return str.replace(r, ''); };