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