Skip to content

Commit b66c99b

Browse files
committed
PS: Lower casing in frameworks.
1 parent e3b3f0b commit b66c99b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

powershell/ql/lib/semmle/code/powershell/frameworks/PowerShell.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ module PowerShell {
66
private class PowerShellGlobalEntry extends ModelInput::TypeModel {
77
override DataFlow::Node getASource(string type) {
88
type = "System.Management.Automation.PowerShell!" and
9-
result.asExpr().getExpr().(TypeNameExpr).getName().toLowerCase() = "powershell"
9+
result.asExpr().getExpr().(TypeNameExpr).getLowerCaseName() = "powershell"
1010
}
1111
}
1212
}

powershell/ql/lib/semmle/code/powershell/frameworks/Runspaces.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ module RunspaceFactory {
66
private class RunspaceFactoryGlobalEntry extends ModelInput::TypeModel {
77
override DataFlow::Node getASource(string type) {
88
type = "System.Management.Automation.Runspaces.RunspaceFactory!" and
9-
result.asExpr().getExpr().(TypeNameExpr).getName().toLowerCase() = "runspacefactory"
9+
result.asExpr().getExpr().(TypeNameExpr).getLowerCaseName() = "runspacefactory"
1010
}
1111
}
1212
}

0 commit comments

Comments
 (0)