Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 416f31f commit be6b107Copy full SHA for be6b107
src/compiler/utilities.ts
@@ -8205,7 +8205,7 @@ export function setObjectAllocator(alloc: ObjectAllocator) {
8205
8206
/** @internal */
8207
export function formatStringFromArgs(text: string, args: DiagnosticArguments): string {
8208
- return text.replace(/{(\d+)}/g, (_match, index: string) => "" + Debug.checkDefined(args[+index]));
+ return text.replace(/\{(\d+)\}/g, (_match, index: string) => "" + Debug.checkDefined(args[+index]));
8209
}
8210
8211
let localizedDiagnosticMessages: MapLike<string> | undefined;
0 commit comments