Skip to content

Commit

Permalink
Merge f7a9ead into ea3bba4
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaellotto committed Apr 26, 2019
2 parents ea3bba4 + f7a9ead commit 80ce269
Showing 1 changed file with 2 additions and 2 deletions.
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 @@ -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

0 comments on commit 80ce269

Please sign in to comment.