"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."
The documentation states:
This is not correct anymore. grunt.file.expand uses glob internally to match the files. Glob github states: