summaryrefslogtreecommitdiff
path: root/node_modules/ignore/legacy.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/ignore/legacy.js')
-rw-r--r--node_modules/ignore/legacy.js8
1 files changed, 7 insertions, 1 deletions
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 )