Skip to content

Commit 69e7841

Browse files
committed
revert noop change
1 parent 5ce32cc commit 69e7841

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/core.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1741,7 +1741,7 @@ namespace ts {
17411741
/* @internal */
17421742
export function endsWith(str: string, suffix: string): boolean {
17431743
const expectedPos = str.length - suffix.length;
1744-
return expectedPos >= 0 && str.lastIndexOf(suffix, expectedPos) === expectedPos;
1744+
return expectedPos >= 0 && str.indexOf(suffix, expectedPos) === expectedPos;
17451745
}
17461746

17471747
export function hasExtension(fileName: string): boolean {

0 commit comments

Comments
 (0)