mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Allow case insensitive paths for determining PSModulePath (#12192)
* Allow case insensitive comparison of paths for determining PSModulePath * Address codefactor issue
This commit is contained in:
committed by
Travis Plunk
parent
c3d9baf884
commit
79b1464022
@@ -1250,7 +1250,7 @@ namespace System.Management.Automation
|
||||
}
|
||||
|
||||
// PowerShell specific paths including if set in powershell.config.json file we want to exclude
|
||||
var excludeModulePaths = new HashSet<string> {
|
||||
var excludeModulePaths = new HashSet<string>(StringComparer.OrdinalIgnoreCase) {
|
||||
GetPersonalModulePath(),
|
||||
GetSharedModulePath(),
|
||||
GetPSHomeModulePath(),
|
||||
|
||||
Reference in New Issue
Block a user