MatchesWindowsMask('[x]','[x]') return False
Original Reporter info from Mantis: RolfW @Rolf_Wetjen
-
Reporter name: Rolf Wetjen
Original Reporter info from Mantis: RolfW @Rolf_Wetjen
- Reporter name: Rolf Wetjen
Description:
TMask uses the brackets as a set indicator in the mask string. In this case the FMask.MinLength and FMask.MaxLength are set to 1. The brackets in the test string are not treated in any special way and so the match fails as the length of the test string is 3 (tested inside TMask.Matches).
I think that this isn't the expected behavior especially as [ and ] are regular character for file and path names in windows.