gruntjs / grunt-docs

Grunt documentation. https://github.com/gruntjs/gruntjs.com
https://gruntjs.com/
79 stars 126 forks source link

grunt.file.expand negate pattern #211

Closed johandavidson closed 6 years ago

johandavidson commented 6 years ago

The documentation states:

"Paths matching patterns that begin with ! will be excluded from the returned array."

This is not correct anymore. grunt.file.expand uses glob internally to match the files. Glob github states:

"Comments and Negation Previously, this module let you mark a pattern as a "comment" if it started with a # character, or a "negated" pattern if it started with a ! character.

These options were deprecated in version 5, and removed in version 6.

To specify things that should not match, use the ignore option."

johandavidson commented 6 years ago

Never mind. This is already handled by grunt.file.expand.