File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -2257,10 +2257,11 @@ Some shells support recursive matching by using the globstar (`**`) wildcard. Ba
2257
2257
$ mocha " ./spec/**/*.js"
2258
2258
```
2259
2259
2260
- [ You should _ always_ quote your globs in npm scripts] [ article-globbing ] . If you
2261
- use double quotes, it's the shell on UNIX that will expand the glob. On the
2262
- other hand, if you use single quotes, the [ ` node-glob ` ] [ npm-glob ] module will
2263
- handle its expansion.
2260
+ You should _ always_ quote your globs in npm scripts. If you
2261
+ use quotes, the [ ` node-glob ` ] [ npm-glob ] module will
2262
+ handle its expansion. For maximum compatibility,
2263
+ surround the entire expression with double quotes and refrain
2264
+ from ` $ ` , ` " ` , ` ^ ` , and ` \ ` within your expression.
2264
2265
2265
2266
See this [ tutorial] [ gist-globbing-tutorial ] on using globs.
2266
2267
@@ -2352,7 +2353,6 @@ For a running example of Mocha, view [example/tests.html](example/tests.html). F
2352
2353
or the [ source] ( https://github.com/mochajs/mocha/blob/master/lib/mocha.js ) .
2353
2354
2354
2355
[ // ] : # ' Cross reference section '
2355
- [ article-globbing ] : https://medium.com/@jakubsynowiec/you-should-always-quote-your-globs-in-npm-scripts-621887a2a784
2356
2356
[ bash-globbing ] : https://www.gnu.org/software/bash/manual/html_node/The-Shopt-Builtin.html
2357
2357
[ better-assert ] : https://github.com/visionmedia/better-assert
2358
2358
[ caniuse-notifications ] : https://caniuse.com/#feat=notifications
You can’t perform that action at this time.
0 commit comments