dotfiles/.vscode/extensions/saviorisdead.RustyCode-0.18.0/node_modules/strip-ansi/index.js
Cyryl Płotnicki 2f946d6200 Add .vscode
2016-09-11 10:29:13 +02:00

6 lines
161 B
JavaScript

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