Comments (1)
flipNegate
doesn't turn negation on and off. It makes the Minimatch object walker match the path against the base pattern whether negated or not. It's intended for cases (like parsing ignore files) where you need to know whether something was actually found and negated, or just not found in the path entry set.
Not the best name for it. But yeah, if you aren't negating the pattern like '!*1.js'
, then flipNegate will do exactly nothing.
from minimatch.
Related Issues (20)
- v6.1.4 is missing in the npm registry HOT 10
- minimatch('.prettierrc.json', '**/*.json') => false HOT 1
- Minimatch export with Node16 module/cjs consumer is unfriendly HOT 5
- minimatch('/foo', '*/foo') => false HOT 11
- Provide more examples of expected matches for globstar HOT 2
- "./*" pattern stopped working after upgrading from 6.2.0 to 7.0.0 HOT 4
- Nesting !() extglob inside of first part of ?() extglob fails HOT 4
- Unusable source maps written to `dist/` HOT 2
- Error: Cannot find module 'brace-expansion' HOT 3
- Webpack build is failing since 7.1.1 HOT 4
- May I ask what is the difference between 9.0 and 8.0? Why can't I smoothly upgrade? HOT 2
- extglob bug: '*(?)' pattern wrongly excludes files with extensions HOT 2
- makeRe-generated regexp for pattern `'some/path/**'` matches `'some/path-but-different'` HOT 2
- Debug info does not seem to match end result of minimatch HOT 3
- Feature Request: Testing against multiple patterns HOT 1
- Higher versions are slower HOT 1
- brace-expansion: Error [ERR_REQUIRE_ESM]: require() of ES Module HOT 1
- README usage for ES6 import syntax is incorrect... HOT 1
- Feature Request: better ESM compatibility HOT 3
- Support GLOBSTARSHORT HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from minimatch.