rectif match with ?
This commit is contained in:
parent
57406817c7
commit
8f34c0f318
1 changed files with 1 additions and 1 deletions
|
|
@ -113,7 +113,7 @@ int match_pattern(t_glob *gl, char *str, char *full_word)
|
||||||
if (*str != *gl->pat)
|
if (*str != *gl->pat)
|
||||||
return (0);
|
return (0);
|
||||||
}
|
}
|
||||||
else if (*gl->pat == '?')
|
else if (*gl->pat == '?' && *str)
|
||||||
;
|
;
|
||||||
else if (*gl->pat == '[')
|
else if (*gl->pat == '[')
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue