mirror of
https://github.com/curl/curl.git
synced 2026-08-25 02:53:32 +03:00
fnmatch: do not match the empty string with a character set
This commit is contained in:
parent
2b50e56343
commit
19abad095c
2 changed files with 5 additions and 5 deletions
|
|
@ -97,8 +97,8 @@ static const struct testcase tests[] = {
|
|||
{ "*[^a].t?t", "a.txt", NOMATCH },
|
||||
{ "*[^a].t?t", "ba.txt", NOMATCH },
|
||||
{ "*[^a].t?t", "ab.txt", MATCH },
|
||||
{ "*[^a]", "", MATCH },
|
||||
{ "[!ÿ]", "", MATCH },
|
||||
{ "*[^a]", "", NOMATCH },
|
||||
{ "[!ÿ]", "", NOMATCH },
|
||||
{ "[!?*[]", "?", NOMATCH },
|
||||
{ "[!!]", "!", NOMATCH },
|
||||
{ "[!!]", "x", MATCH },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue