Skip to content

Commit b8ddc0d

Browse files
author
Armando Aguirre
committed
Rollback fileExtensionIs
1 parent 5434c41 commit b8ddc0d

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
@@ -2324,7 +2324,7 @@ namespace ts {
23242324
}
23252325

23262326
export function fileExtensionIs(path: string, extension: string): boolean {
2327-
return path.length >= extension.length && endsWith(path, extension);
2327+
return path.length > extension.length && endsWith(path, extension);
23282328
}
23292329

23302330
export function fileExtensionIsOneOf(path: string, extensions: ReadonlyArray<string>): boolean {

0 commit comments

Comments
 (0)