Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c115451

Browse files
committed
JS: Fix copy-pasta bug
1 parent ab0ed66 commit c115451

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

javascript/ql/src/semmle/javascript/StringOps.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ module StringOps {
408408
/**
409409
* A call of form `_.endsWith(A, B)` or `ramda.endsWith(A, B)`.
410410
*/
411-
private class EndsWith_Library extends StartsWith, DataFlow::CallNode {
411+
private class EndsWith_Library extends Range, DataFlow::CallNode {
412412
EndsWith_Library() {
413413
getNumArgument() = 2 and
414414
exists(DataFlow::SourceNode callee | this = callee.getACall() |
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
| 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

Comments
 (0)