Fix literal caret handling in Windows path normalization and wildcard matching

This commit is contained in:
Andrea Mazzoleni 2026-08-26 15:09:30 +02:00
parent 670ab0195b
commit dd97bb2fa6
4 changed files with 130 additions and 23 deletions

View file

@ -127,7 +127,7 @@ unsigned strtou(const char* nptr, char** endptr, int base);
* - ** (not near a /) like *
* - ##/ reduces to nothing in addition to the normal matching of ** (using # instead of * to not mess the C comment)
* - [...] matches character classes with support for ranges and negation lile [!...] or [^...], except /
* - \ escapes *, ?, [, ], and \
* - \ (Unix) or ^ (Windows) escapes *, ?, [, ], and the escape character itself
*
* \return 0 if it matches
*/