Socket
Socket
Sign inDemoInstall

ansi-regex

Package Overview
Dependencies
0
Maintainers
2
Versions
17
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0 to 1.1.0

2

index.js
'use strict';
module.exports = function () {
return /\u001b\[(?:[0-9]{1,3}(?:;[0-9]{1,3})*)?[m|K]/g;
return /(?:(?:\u001b\[)|\u009b)(?:(?:[0-9]{1,3})?(?:(?:;[0-9]{0,3})*)?[A-M|f-m])|\u001b[A-M]/g;
};
{
"name": "ansi-regex",
"version": "1.0.0",
"version": "1.1.0",
"description": "Regular expression for matching ANSI escape codes",

@@ -16,3 +16,4 @@ "license": "MIT",

"scripts": {
"test": "mocha"
"test": "mocha test/test.js",
"view-supported": "node test/viewCodes.js"
},

@@ -19,0 +20,0 @@ "files": [

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc