summaryrefslogtreecommitdiff
path: root/node_modules/ansi-regex/index.js
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2023-10-14 22:41:29 +0800
committerlittleblack111 <littleblack11111@gmail.com>2023-10-14 22:41:29 +0800
commitaf842b8362016d0ac572de8c5810b67258df8bd7 (patch)
treef904a9294f8d1780a60e6630cf6fd4b494aa7878 /node_modules/ansi-regex/index.js
parentbd9536ee06890c07456337fec3e7a916e03d8f6e (diff)
updates
Diffstat (limited to 'node_modules/ansi-regex/index.js')
-rw-r--r--node_modules/ansi-regex/index.js10
1 files changed, 2 insertions, 8 deletions
diff --git a/node_modules/ansi-regex/index.js b/node_modules/ansi-regex/index.js
index 616ff837..b9574ed7 100644
--- a/node_modules/ansi-regex/index.js
+++ b/node_modules/ansi-regex/index.js
@@ -1,10 +1,4 @@
'use strict';
-
-module.exports = ({onlyFirst = false} = {}) => {
- const pattern = [
- '[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)',
- '(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))'
- ].join('|');
-
- return new RegExp(pattern, onlyFirst ? undefined : 'g');
+module.exports = function () {
+ return /[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-PRZcf-nqry=><]/g;
};