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.0.1 to 3.0.2

12

ignore.js

@@ -191,6 +191,12 @@ 'use strict';

// OOPS: Tested up from git 1.9.3 -> 2.6.4
// Trailing whitespaces are not ignored actually!!!!
// > Trailing spaces are ignored unless they are quoted with backslash ("\")
[
// (a\ ) -> (a )
// (a ) -> (a)
// (a \ ) -> (a )
/\\?\s+$/, function (match) {
return match.indexOf('\\') === 0 ? ' ' : '';
}],
// > Trailing spaces are ignored unless they are quoted with backslash ("\")
// replace (\ ) with ' '
[/\\\s/g, function (match) {

@@ -197,0 +203,0 @@ return ' ';

@@ -166,9 +166,19 @@ 'use strict'

// OOPS: Tested up from git 1.9.3 -> 2.6.4
// Trailing whitespaces are not ignored actually!!!!
// > Trailing spaces are ignored unless they are quoted with backslash ("\")
[
// (a\ ) -> (a )
// (a ) -> (a)
// (a \ ) -> (a )
/\\?\s+$/,
function(match) {
return match.indexOf('\\') === 0
? ' '
: ''
}
],
// replace (\ ) with ' '
[
/\\\s/g,
function(match) {
function (match) {
return ' '

@@ -175,0 +185,0 @@ }

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

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

@@ -47,5 +47,5 @@ [![Build Status](https://travis-ci.org/kaelzhang/node-ignore.png?branch=master)](https://travis-ci.org/kaelzhang/node-ignore)

- '`**/foo`' should match '`foo`' anywhere.
- Prevent re-including a file if a parent directory of that file is excluded.
- prevent re-including a file if a parent directory of that file is excluded.
- handle trailing whitespaces.
## Methods

@@ -52,0 +52,0 @@

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