mirror of https://github.com/raandree/NTFSSecurity
Browse Source
With the culture of the thread tr-TR, the case-insensitive WildcardPattern that compares each name with the filter treats I and i as different letters. The enumeration had already matched the name without regard to the culture, so the cmdlet dropped the items whose names differ from the filter in the case of an I: -Filter 'index*' returned nothing for Index.txt, and -Filter '*.ini' did not return SETTINGS.INI. Both editions. The independent review of the coverage report found it; the scan of culture-sensitive calls had not listed WildcardPattern. The test sets the culture of the thread to tr-TR. On the previous build it fails in the four configurations (3 of 134 cases of ItemCmdlets.Tests.ps1: index*, *.ini, and *.INI; INDEX* is the control). The pattern is now WildcardOptions.CultureInvariant. The changelog entry of the identity comparison named the operator -eq, which tr-TR never affected (probes on the previous build: -eq, -contains, and -in return True for every case); it now names the method Equals. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Co-authored-by: AI Assistant <ai@example.com>ai/coverage-unknowns
3 changed files with 41 additions and 4 deletions
Loading…
Reference in new issue