fix **/x glob matching (#21129)

This commit is contained in:
Sigbjørn Skjæret 2026-03-28 22:27:38 +01:00 committed by GitHub
parent 98ae0a0d36
commit 65097181e4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 1 deletions

View File

@ -703,7 +703,6 @@ static inline bool glob_match(const char * pattern, const char * str) {
}
if (pattern[0] == '*' && pattern[1] == '*') {
const char * p = pattern + 2;
if (*p == '/') p++;
if (glob_match(p, str)) return true;
if (*str != '\0') return glob_match(pattern, str + 1);
return false;