Socket
Socket
Sign inDemoInstall

slice-ansi

Package Overview
Dependencies
5
Maintainers
2
Versions
13
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.0 to 2.1.0

3

index.js

@@ -30,3 +30,3 @@ 'use strict';

insideEscape = true;
const code = /\d[^m]*/.exec(str.slice(i, i + 4));
const code = /\d[^m]*/.exec(str.slice(i, i + 18));
escapeCode = code === END_CODE ? null : code;

@@ -54,2 +54,3 @@ } else if (insideEscape && x === 'm') {

}
break;

@@ -56,0 +57,0 @@ }

{
"name": "slice-ansi",
"version": "2.0.0",
"version": "2.1.0",
"description": "Slice a string with ANSI escape codes",

@@ -45,8 +45,8 @@ "license": "MIT",

"devDependencies": {
"ava": "^0.25.0",
"chalk": "^2.0.1",
"ava": "^1.1.0",
"chalk": "^2.4.2",
"random-item": "^1.0.0",
"strip-ansi": "^5.0.0",
"xo": "^0.23.0"
"xo": "^0.24.0"
}
}
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