revert noop change

This commit is contained in:
Arthur Ozga
2017-05-03 13:22:01 -07:00
parent 5ce32ccbe3
commit 69e7841cda

View File

@@ -1741,7 +1741,7 @@ namespace ts {
/* @internal */
export function endsWith(str: string, suffix: string): boolean {
const expectedPos = str.length - suffix.length;
return expectedPos >= 0 && str.lastIndexOf(suffix, expectedPos) === expectedPos;
return expectedPos >= 0 && str.indexOf(suffix, expectedPos) === expectedPos;
}
export function hasExtension(fileName: string): boolean {