Skip to content

Commit cf786c9

Browse files
committed
fix: escape quotes failing when value is not a string
addresses resend/react-email#1632
1 parent 5ab7b29 commit cf786c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { RendererObject } from "marked";
44
import { styles } from "./styles";
55

66
function escapeQuotes(value: string) {
7-
if (value.includes('"')) {
7+
if (typeof value === 'string' && value.includes('"')) {
88
return value.replace(/"/g, "'");
99
}
1010
return value;

0 commit comments

Comments
 (0)