This commit is contained in:
LazyTong 2025-05-05 20:38:32 +00:00 committed by GitHub
commit 7107cc25fc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ export function escapeHtml(string: unknown): string {
const commentStripRE = /^-?>|<!--|-->|--!>|<!-$/g
export function escapeHtmlComment(src: string): string {
return src.replace(commentStripRE, '')
return src.toString().replace(commentStripRE, '')
}
export const cssVarNameEscapeSymbolsRE: RegExp =