2
0
mirror of https://github.com/FWGS/xash3d-fwgs synced 2024-11-22 01:45:19 +01:00

public: allow matching anything in matchpattern

This commit is contained in:
Alibek Omarov 2023-07-05 05:09:15 +03:00
parent cd46ad19a3
commit 4031f5cb01

View File

@ -954,7 +954,12 @@ skipwhite:
int matchpattern( const char *in, const char *pattern, qboolean caseinsensitive )
{
return matchpattern_with_separator( in, pattern, caseinsensitive, "/\\:", false );
const char *separators = "/\\:";
if( !Q_strcmp( pattern, "*" ))
separators = "";
return matchpattern_with_separator( in, pattern, caseinsensitive, separators, false );
}
// wildcard_least_one: if true * matches 1 or more characters