Socket
Socket
Sign inDemoInstall

ignore

Package Overview
Dependencies
Maintainers
1
Versions
92
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ignore - npm Package Compare versions

Comparing version 3.1.1 to 3.1.2

14

ignore.js

@@ -302,9 +302,11 @@ 'use strict';

// two globstars
[/\\\/\\\*\\\*(\\\/|$)/g,
[/\\\/\\\*\\\*(?=\\\/|$)/g,
// Zero, one or several directories
// should not use '*', or it will be replaced by the next replacer
function (m, p1) {
return p1 === '\\/'
function (m, index, str) {
// Check if it is not the last `'/**'`
return index + 6 < str.length
// case: /**/

@@ -314,7 +316,9 @@ // > A slash followed by two consecutive asterisks then a slash matches zero or more directories.

// '/**/'
? '(?:\\/[^\\/]+)*\\/'
? '(?:\\/[^\\/]+)*'
// case: /**
// > A trailing `"/**"` matches everything inside.
: '\\/';
// #21: everything inside but it should not include the current folder
: '\\/.+';
}],

@@ -321,0 +325,0 @@

{
"name": "ignore",
"version": "3.1.1",
"version": "3.1.2",
"description": "Ignore is a manager and filter for .gitignore rules.",

@@ -5,0 +5,0 @@ "main": "./ignore.js",

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc