Skip to content

Commit

Permalink
Merge 76758ad into 2a84429
Browse files Browse the repository at this point in the history
  • Loading branch information
katsa9 committed Aug 23, 2019
2 parents 2a84429 + 76758ad commit d791554
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/getting-started/6-explaining-globs.md
Expand Up @@ -28,7 +28,7 @@ const invalidGlob = path.join(__dirname, 'src/*.js');

## Special character: * (single-star)

Matches any amount - including none - of characters within a single segment. Useful for globbing files within one directory.
Matches any amount - including none - of the characters within a single segment. Useful for globbing files within one directory.

This glob will match files like `index.js`, but not files like `scripts/index.js` or `scripts/nested/index.js`
```js
Expand All @@ -37,7 +37,7 @@ This glob will match files like `index.js`, but not files like `scripts/index.js

## Special character: ** (double-star)

Matches any amount - including none - of characters across segments. Useful for globbing files in nested directories. Make sure to appropriately restrict your double-star globs, to avoid matching large directories unnecessarily.
Matches any amount - including none - of the characters across segments. Useful for globbing files in nested directories. Make sure to appropriately restrict your double-star globs, to avoid matching large directories unnecessarily.

Here, the glob is appropriately restricted to the `scripts/` directory. It will match files like `scripts/index.js`, `scripts/nested/index.js`, and `scripts/nested/twice/index.js`.

Expand Down

0 comments on commit d791554

Please sign in to comment.