ansi-regex
Advanced tools
Comparing version 1.1.1 to 2.0.0
'use strict'; | ||
module.exports = function () { | ||
return /(?:(?:\u001b\[)|\u009b)(?:(?:[0-9]{1,3})?(?:(?:;[0-9]{0,3})*)?[A-M|f-m])|\u001b[A-M]/g; | ||
return /[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g; | ||
}; |
{ | ||
"name": "ansi-regex", | ||
"version": "1.1.1", | ||
"version": "2.0.0", | ||
"description": "Regular expression for matching ANSI escape codes", | ||
@@ -10,7 +10,7 @@ "license": "MIT", | ||
"email": "sindresorhus@gmail.com", | ||
"url": "http://sindresorhus.com" | ||
"url": "sindresorhus.com" | ||
}, | ||
"maintainers": [ | ||
"Sindre Sorhus <sindresorhus@gmail.com> (http://sindresorhus.com)", | ||
"Joshua Appelman <jappelman@xebia.com> (http://jbnicolai.com)" | ||
"Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)", | ||
"Joshua Appelman <jappelman@xebia.com> (jbnicolai.com)" | ||
], | ||
@@ -17,0 +17,0 @@ "engines": { |
@@ -8,3 +8,3 @@ # ansi-regex [![Build Status](https://travis-ci.org/sindresorhus/ansi-regex.svg?branch=master)](https://travis-ci.org/sindresorhus/ansi-regex) | ||
```sh | ||
``` | ||
$ npm install --save ansi-regex | ||
@@ -29,7 +29,5 @@ ``` | ||
*It's a function so you can create multiple instances. Regexes with the global flag will have the `.lastIndex` property changed for each call to methods on the instance. Therefore reusing the instance with multiple calls will not work as expected for `.test()`.* | ||
## License | ||
MIT © [Sindre Sorhus](http://sindresorhus.com) |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
1
2872
32