Actualizacion maquina principal
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / strip-ansi / node_modules / ansi-regex / index.js
1 'use strict';
2
3 module.exports = options => {
4         options = Object.assign({
5                 onlyFirst: false
6         }, options);
7
8         const pattern = [
9                 '[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)',
10                 '(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))'
11         ].join('|');
12
13         return new RegExp(pattern, options.onlyFirst ? undefined : 'g');
14 };