Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ab0ed66 commit c115451Copy full SHA for c115451
2 files changed
javascript/ql/src/semmle/javascript/StringOps.qll
@@ -408,7 +408,7 @@ module StringOps {
408
/**
409
* A call of form `_.endsWith(A, B)` or `ramda.endsWith(A, B)`.
410
*/
411
- private class EndsWith_Library extends StartsWith, DataFlow::CallNode {
+ private class EndsWith_Library extends Range, DataFlow::CallNode {
412
EndsWith_Library() {
413
getNumArgument() = 2 and
414
exists(DataFlow::SourceNode callee | this = callee.getACall() |
javascript/ql/test/library-tests/StringOps/EndsWith/EndsWith.expected
@@ -1 +1,3 @@
1
| tst.js:5:7:5:19 | A.endsWith(B) | tst.js:5:7:5:7 | A | tst.js:5:18:5:18 | B | true |
2
+| tst.js:6:7:6:22 | _.endsWith(A, B) | tst.js:6:18:6:18 | A | tst.js:6:21:6:21 | B | true |
3
+| tst.js:7:7:7:22 | R.endsWith(A, B) | tst.js:7:18:7:18 | A | tst.js:7:21:7:21 | B | true |
0 commit comments