Skip to content

Commit 68e60ff

Browse files
committed
fix typechecking
1 parent 43aa7b2 commit 68e60ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/enhancers/github/github-common.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ function escapeHtml(text: string): string {
4444
'"': """,
4545
"'": "'",
4646
}
47-
return text.replace(/[&<>"']/g, (m) => map[m])
47+
return text.replace(/[&<>"']/g, (m) => map[m]!)
4848
}
4949

5050
function githubHighlighter(code: string, language?: string) {

0 commit comments

Comments
 (0)