Comparing version 3.0.1 to 3.0.2
@@ -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 ' '; |
18
index.js
@@ -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 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
22736
570