Skip to content

Commit be6b107

Browse files
Fix Self-check
1 parent 416f31f commit be6b107

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/utilities.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -8205,7 +8205,7 @@ export function setObjectAllocator(alloc: ObjectAllocator) {
82058205

82068206
/** @internal */
82078207
export function formatStringFromArgs(text: string, args: DiagnosticArguments): string {
8208-
return text.replace(/{(\d+)}/g, (_match, index: string) => "" + Debug.checkDefined(args[+index]));
8208+
return text.replace(/\{(\d+)\}/g, (_match, index: string) => "" + Debug.checkDefined(args[+index]));
82098209
}
82108210

82118211
let localizedDiagnosticMessages: MapLike<string> | undefined;

0 commit comments

Comments
 (0)