Skip to content

Commit 6509718

Browse files
authored
fix **/x glob matching (#21129)
1 parent 98ae0a0 commit 6509718

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

common/common.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -703,7 +703,6 @@ static inline bool glob_match(const char * pattern, const char * str) {
703703
}
704704
if (pattern[0] == '*' && pattern[1] == '*') {
705705
const char * p = pattern + 2;
706-
if (*p == '/') p++;
707706
if (glob_match(p, str)) return true;
708707
if (*str != '\0') return glob_match(pattern, str + 1);
709708
return false;

0 commit comments

Comments
 (0)