Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/getting-started/6-explaining-globs.md
Original file line number Diff line number Diff line change
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