ansi-regex
Advanced tools
Comparing version 4.0.0 to 4.1.0
@@ -9,3 +9,3 @@ 'use strict'; | ||
const pattern = [ | ||
'[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[a-zA-Z\\d]*)*)?\\u0007)', | ||
'[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)', | ||
'(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))' | ||
@@ -12,0 +12,0 @@ ].join('|'); |
{ | ||
"name": "ansi-regex", | ||
"version": "4.0.0", | ||
"version": "4.1.0", | ||
"description": "Regular expression for matching ANSI escape codes", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -5,3 +5,17 @@ # ansi-regex [![Build Status](https://travis-ci.org/chalk/ansi-regex.svg?branch=master)](https://travis-ci.org/chalk/ansi-regex) | ||
--- | ||
<div align="center"> | ||
<b> | ||
<a href="https://tidelift.com/subscription/pkg/npm-ansi-regex?utm_source=npm-ansi-regex&utm_medium=referral&utm_campaign=readme">Get professional support for this package with a Tidelift subscription</a> | ||
</b> | ||
<br> | ||
<sub> | ||
Tidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies. | ||
</sub> | ||
</div> | ||
--- | ||
## Install | ||
@@ -30,2 +44,5 @@ | ||
//=> ['\u001B[4m'] | ||
'\u001B]8;;https://github.com\u0007click\u001B]8;;\u0007'.match(ansiRegex()); | ||
//=> ['\u001B]8;;https://github.com\u0007', '\u001B]8;;\u0007'] | ||
``` | ||
@@ -59,2 +76,7 @@ | ||
## Security | ||
To report a security vulnerability, please use the [Tidelift security contact](https://tidelift.com/security). Tidelift will coordinate the fix and disclosure. | ||
## Maintainers | ||
@@ -61,0 +83,0 @@ |
5139
88