Comments (9)
fyi - i've found [[]
works as a substitute for escaping [
on Windows
from minimatch.
+1 Mm, yea. With single \[
doesn't help, with \\[
also, because splits by \\
for windows paths...
from minimatch.
👍 You should be able to escape any minimatch special characters
from minimatch.
+1
from minimatch.
@isaacs I notice some commits that relate to this. Is it fixed?
from minimatch.
@phated yea, it seems it is fixed and work with double slash for escaping. cuz yesterday i tested it gulpjs/gulp#1027
but yea, some response also would be good.
from minimatch.
@phated assuming this is the same that gulp is currently using; it's not fixed in gulp 3.9.0
from minimatch.
Sorry, wrong thread :/
from minimatch.
In latest 3.0, you can escape and set allowWindowsEscape:true
to the options.
In v5 and up, \
is no longer treated as a path separator in patterns, so you must use /
in patterns on windows, and can escape to your hearts' delight.
from minimatch.
Related Issues (20)
- Negated union doesn't work HOT 5
- minimatch function and generated regular expression work differently HOT 2
- ESM Import Failing - v6.0.0 HOT 17
- 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
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.