mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-12 23:16:26 +00:00
fix(utils): set nocase=true for minimatch (#27412)
This commit is contained in:
parent
23f3df6216
commit
a9946a3b18
2 changed files with 5 additions and 1 deletions
|
@ -30,6 +30,10 @@ describe('util/string-match', () => {
|
|||
expect(matchRegexOrGlobList('test', ['test', '!/test3/'])).toBeTrue();
|
||||
});
|
||||
|
||||
it('returns true case insensitive for glob', () => {
|
||||
expect(matchRegexOrGlobList('TEST', ['t*'])).toBeTrue();
|
||||
});
|
||||
|
||||
it('returns true if matching every negative pattern (regex)', () => {
|
||||
expect(
|
||||
matchRegexOrGlobList('test', ['test', '!/test3/', '!/test4/']),
|
||||
|
|
|
@ -14,7 +14,7 @@ export function getRegexOrGlobPredicate(pattern: string): StringMatchPredicate {
|
|||
return regExPredicate;
|
||||
}
|
||||
|
||||
const mm = minimatch(pattern, { dot: true });
|
||||
const mm = minimatch(pattern, { dot: true, nocase: true });
|
||||
return (x: string): boolean => mm.match(x);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue