mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-10 06:41:59 -06:00
Rollback fileExtensionIs
This commit is contained in:
parent
5434c4146e
commit
b8ddc0dabb
@ -2324,7 +2324,7 @@ namespace ts {
|
||||
}
|
||||
|
||||
export function fileExtensionIs(path: string, extension: string): boolean {
|
||||
return path.length >= extension.length && endsWith(path, extension);
|
||||
return path.length > extension.length && endsWith(path, extension);
|
||||
}
|
||||
|
||||
export function fileExtensionIsOneOf(path: string, extensions: ReadonlyArray<string>): boolean {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user