Fix Com_Filter

Com_Filter uses a limited sort of proto-regex syntax including a
character class like construct, but prior to this change these did not
work if preceded by a * glob.
This commit is contained in:
Tim Angus committed 2025-10-18 17:50:32 +01:00
1 parent b9262943a4
commit 8cc9eb5eff
1 file changed
+1 -1
+1 -1
View File
@@ -626,7 +626,7 @@ int Com_Filter(char *filter, char *name, int casesensitive)
if (*filter == '*') {
filter++;
for (i = 0; *filter; i++) {
if (*filter == '*' || *filter == '?') break;
if (*filter == '*' || *filter == '?' || *filter == '[') break;
buf[i] = *filter;
filter++;
}