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:
Aditya Patwardhan
2020-04-20 13:29:05 -07:00
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(),