Comparing version 3.2.2 to 3.2.3
@@ -270,3 +270,2 @@ 'use strict'; | ||
// '**/foo' <-> 'foo' | ||
// just remove it | ||
function () { | ||
@@ -334,6 +333,10 @@ return '^(?:.*\\/)?'; | ||
return (p1 | ||
// '\^': | ||
// '/*' does not match '' | ||
// '/*' does not match everything | ||
// '\\\/': | ||
// 'abc/*' does not match 'abc/' | ||
? p1 + '[^/]+' | ||
// 'a*' matches 'a' | ||
@@ -410,16 +413,15 @@ // 'a*' matches 'aa' | ||
// -------------------------------------------------------------- | ||
/* istanbul ignore if */ | ||
if (process.env.IGNORE_TEST_WIN32 || process.platform === 'win32') { | ||
(function () { | ||
var filter = IgnoreBase.prototype._filter; | ||
var make_posix = function make_posix(str) { | ||
return (/^\\\\\?\\/.test(str) || /[^\x00-\x80]+/.test(str) ? str : str.replace(/\\/g, '/') | ||
); | ||
}; | ||
var filter = IgnoreBase.prototype._filter; | ||
var make_posix = function make_posix(str) { | ||
return (/^\\\\\?\\/.test(str) || /[^\x00-\x80]+/.test(str) ? str : str.replace(/\\/g, '/') | ||
); | ||
}; | ||
IgnoreBase.prototype._filter = function (path, slices) { | ||
path = make_posix(path); | ||
return filter.call(this, path, slices); | ||
}; | ||
})(); | ||
IgnoreBase.prototype._filter = function (path, slices) { | ||
path = make_posix(path); | ||
return filter.call(this, path, slices); | ||
}; | ||
} |
{ | ||
"name": "ignore", | ||
"version": "3.2.2", | ||
"version": "3.2.3", | ||
"description": "Ignore is a manager and filter for .gitignore rules.", | ||
@@ -11,3 +11,5 @@ "main": "./ignore.js", | ||
"scripts": { | ||
"test": "./node_modules/.bin/mocha --reporter spec ./test/ignore.js" | ||
"test": "istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec ./test/ignore.js && codecov", | ||
"test-no-cov": "./node_modules/.bin/mocha --reporter spec ./test/ignore.js", | ||
"cov-report": "istanbul report" | ||
}, | ||
@@ -38,7 +40,8 @@ "repository": { | ||
}, | ||
"dependencies": {}, | ||
"devDependencies": { | ||
"chai": "~1.7.2", | ||
"codecov": "^1.0.1", | ||
"istanbul": "^0.4.5", | ||
"mocha": "~1.13.0" | ||
} | ||
} |
[![Build Status](https://travis-ci.org/kaelzhang/node-ignore.svg?branch=master)](https://travis-ci.org/kaelzhang/node-ignore) | ||
[![Windows Build Status](https://ci.appveyor.com/api/projects/status/github/kaelzhang/node-ignore?branch=master&svg=true)](https://ci.appveyor.com/project/kaelzhang/node-ignore) | ||
[![npm module downloads per month](http://img.shields.io/npm/dm/ignore.svg)](https://www.npmjs.org/package/ignore) | ||
[![codecov](https://codecov.io/gh/kaelzhang/node-ignore/branch/master/graph/badge.svg)](https://codecov.io/gh/kaelzhang/node-ignore) | ||
# ignore | ||
@@ -16,2 +18,4 @@ | ||
Actually, `ignore` does not rely on any versions of node specially. | ||
## Table Of Main Contents | ||
@@ -18,0 +22,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
19935
203
4