Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update 6-explaining-globs.md #2326

Merged
merged 1 commit into from Apr 27, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/getting-started/6-explaining-globs.md
Expand Up @@ -52,13 +52,13 @@ Here, the glob is appropriately restricted to the `scripts/` directory. It will
Since globs are matched in array order, a negative glob must follow at least one non-negative glob in an array. The first finds a set of matches, then the negative glob removes a portion of those results. These are most performant when they only include literal characters.

```js
['script/**/*.js', '!scripts/vendor/']
['scripts/**/*.js', '!scripts/vendor/']
```

If any non-negative globs follow a negative, nothing will be removed from the later set of matches.

```js
['script/**/*.js', '!scripts/vendor/', 'scripts/vendor/react.js']
['scripts/**/*.js', '!scripts/vendor/', 'scripts/vendor/react.js']
```

Negative globs can be used as an alternative for restricting double-star globs.
Expand Down