Skip to content

Commit 7745fc5

Browse files
committed
fix codeQL warning
1 parent a0e60e2 commit 7745fc5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/compiler/utilities.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -7441,7 +7441,7 @@ namespace ts {
74417441
}
74427442

74437443
export function escapeSnippetText(text: string): string {
7444-
return text.replace(/\$/gm, "\\$");
7444+
return text.replace(/\$/gm, () => "\\$");
74457445
}
74467446

74477447
export function isNumericLiteralName(name: string | __String) {

0 commit comments

Comments
 (0)