summaryrefslogtreecommitdiff
path: root/node_modules/ignore
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/ignore')
-rw-r--r--node_modules/ignore/index.js8
-rw-r--r--node_modules/ignore/legacy.js8
-rw-r--r--node_modules/ignore/package.json2
3 files changed, 16 insertions, 2 deletions
diff --git a/node_modules/ignore/index.js b/node_modules/ignore/index.js
index a25577f7..c5598064 100644
--- a/node_modules/ignore/index.js
+++ b/node_modules/ignore/index.js
@@ -67,6 +67,14 @@ const cleanRangeBackSlash = slashes => {
// '`foo/`' should not continue with the '`..`'
const REPLACERS = [
+ [
+ // remove BOM
+ // TODO:
+ // Other similar zero-width characters?
+ /^\uFEFF/,
+ () => EMPTY
+ ],
+
// > Trailing spaces are ignored unless they are quoted with backslash ("\")
[
// (a\ ) -> (a )
diff --git a/node_modules/ignore/legacy.js b/node_modules/ignore/legacy.js
index 8518b7c5..e9704718 100644
--- a/node_modules/ignore/legacy.js
+++ b/node_modules/ignore/legacy.js
@@ -71,7 +71,13 @@ var cleanRangeBackSlash = function cleanRangeBackSlash(slashes) {
// you could use option `mark: true` with `glob`
// '`foo/`' should not continue with the '`..`'
-var REPLACERS = [
+var REPLACERS = [[
+// remove BOM
+// TODO:
+// Other similar zero-width characters?
+/^\uFEFF/, function () {
+ return EMPTY;
+}],
// > Trailing spaces are ignored unless they are quoted with backslash ("\")
[
// (a\ ) -> (a )
diff --git a/node_modules/ignore/package.json b/node_modules/ignore/package.json
index 7c62cad9..edc78d3c 100644
--- a/node_modules/ignore/package.json
+++ b/node_modules/ignore/package.json
@@ -1,6 +1,6 @@
{
"name": "ignore",
- "version": "5.3.0",
+ "version": "5.3.1",
"description": "Ignore is a manager and filter for .gitignore rules, the one used by eslint, gitbook and many others.",
"files": [
"legacy.js",