Skip to content

Commit ff8fdb1

Browse files
committed
Fix to exclude PowerShell help files from being AST parsed
1 parent 6a77fb6 commit ff8fdb1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Engine/ScriptAnalyzer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1244,7 +1244,7 @@ private IEnumerable<DiagnosticRecord> AnalyzeFile(string filePath)
12441244
if (File.Exists(filePath))
12451245
{
12461246
// processing for non help script
1247-
if (!(Path.GetFileName(filePath).StartsWith("about_") && Path.GetFileName(filePath).EndsWith(".help.txt")))
1247+
if (!(Path.GetFileName(filePath).ToLower().StartsWith("about_") && Path.GetFileName(filePath).ToLower().EndsWith(".help.txt")))
12481248
{
12491249
try
12501250
{

0 commit comments

Comments
 (0)