In at least some situations, the root path was being added to the results of globbing even if it matched the optional exclude function. In the relevant test file, a variable was renamed for consistency. (There was a patterns and pattern2, rather than patterns2.) The test case is added to patterns2. Fixes: https://github.com/nodejs/node/issues/56260 PR-URL: https://github.com/nodejs/node/pull/57420 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Jason Zhang <xzha4350@gmail.com> Reviewed-By: LiviaMedeiros <livia@cirno.name> Reviewed-By: James M Snell <jasnell@gmail.com> |
||
|---|---|---|
| .. | ||
| cp | ||
| read | ||
| dir.js | ||
| glob.js | ||
| promises.js | ||
| recursive_watch.js | ||
| rimraf.js | ||
| streams.js | ||
| sync_write_stream.js | ||
| utils.js | ||
| watchers.js | ||