We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 387da2f commit 407c8beCopy full SHA for 407c8be
1 file changed
src/compiler/utilities.ts
@@ -240,7 +240,7 @@ namespace ts {
240
// Make an identifier from an external module name by extracting the string after the last "/" and replacing
241
// all non-alphanumeric characters with underscores
242
export function makeIdentifierFromModuleName(moduleName: string): string {
243
- return getBaseFileName(moduleName).replace(/\W/g, "_");
+ return getBaseFileName(moduleName).replace(/^(\d)/, "_$1").replace(/\W/g, "_");
244
}
245
246
export function isBlockOrCatchScoped(declaration: Declaration) {
0 commit comments