We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5434c41 commit b8ddc0dCopy full SHA for b8ddc0d
1 file changed
src/compiler/core.ts
@@ -2324,7 +2324,7 @@ namespace ts {
2324
}
2325
2326
export function fileExtensionIs(path: string, extension: string): boolean {
2327
- return path.length >= extension.length && endsWith(path, extension);
+ return path.length > extension.length && endsWith(path, extension);
2328
2329
2330
export function fileExtensionIsOneOf(path: string, extensions: ReadonlyArray<string>): boolean {
0 commit comments