Skip to content

Commit

Permalink
Improve match criteria to prevent false positives.
Browse files Browse the repository at this point in the history
  • Loading branch information
shyamnamboodiripad committed Jul 18, 2023
1 parent f7432ae commit a7e9481
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,8 @@ private static string GetFrontendName(
return directive.Key;
}

if (directive.Key.StartsWith("vs")) // VS also appends the process id to the string.
if (directive.Key.StartsWith("vs") &&
int.TryParse(directive.Key.Substring(2), out _)) // VS appends the process id after the "vs" prefix.
{
return "vs";
}
Expand Down

0 comments on commit a7e9481

Please sign in to comment.