index.js 152 Bytes Edit Raw Blame History 1 2 3 4 'use strict'; var ansiRegex = require('ansi-regex'); var re = new RegExp(ansiRegex().source); // remove the `g` flag module.exports = re.test.bind(re);