mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-07 14:34:35 -06:00
Fix typo
This commit is contained in:
parent
b7f4480656
commit
cc41daab61
@ -645,9 +645,9 @@ module ts {
|
||||
*/
|
||||
export const supportedExtensions = [".ts", ".d.ts"];
|
||||
|
||||
const extensitionsToRemove = [".d.ts", ".ts", ".js"];
|
||||
const extensionsToRemove = [".d.ts", ".ts", ".js"];
|
||||
export function removeFileExtension(path: string): string {
|
||||
for (let ext of extensitionsToRemove) {
|
||||
for (let ext of extensionsToRemove) {
|
||||
if (fileExtensionIs(path, ext)) {
|
||||
return path.substr(0, path.length - ext.length);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user