We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1db5cb1 commit 5898b48Copy full SHA for 5898b48
javascript/ql/src/semmle/javascript/StandardLibrary.qll
@@ -155,6 +155,7 @@ class StringReplaceCall extends DataFlow::MethodCallNode {
155
DataFlow::Node ret
156
|
157
replacer = getCallback(1) and
158
+ guard.getOutcome() = test.getPolarity() and
159
guard.getTest() = test and
160
replacer.getParameter(0).flowsToExpr(test.getAnOperand()) and
161
test.getAnOperand().getStringValue() = old and
0 commit comments