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 5ce32cc commit 69e7841Copy full SHA for 69e7841
src/compiler/core.ts
@@ -1741,7 +1741,7 @@ namespace ts {
1741
/* @internal */
1742
export function endsWith(str: string, suffix: string): boolean {
1743
const expectedPos = str.length - suffix.length;
1744
- return expectedPos >= 0 && str.lastIndexOf(suffix, expectedPos) === expectedPos;
+ return expectedPos >= 0 && str.indexOf(suffix, expectedPos) === expectedPos;
1745
}
1746
1747
export function hasExtension(fileName: string): boolean {
0 commit comments