mirror of
https://github.com/nodejs/node.git
synced 2026-11-09 15:11:11 -05:00
On case-insensitive platforms include patterns match entries regardless of case, but literal (non-magic) exclude patterns were matched case-sensitively because exclude matchers are created with nocaseMagicOnly. Exclusion is a pure string match with no filesystem lookups, so disable nocaseMagicOnly for exclude matchers. Fixes: https://github.com/nodejs/node/issues/58991 Refs: https://github.com/nodejs/node/pull/63446 Signed-off-by: Yusuke Hayashi <yusuke8h@gmail.com> PR-URL: https://github.com/nodejs/node/pull/64817 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Stefan Stojanovic <stefan.stojanovic@janeasystems.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>