build bug

This commit is contained in:
hamid zarghami
2025-07-19 09:09:46 +03:30
parent 76fa93ac42
commit f8af0af065
+1 -1
View File
@@ -98,7 +98,7 @@ export const sanitizeEmailHTML = (html: string): string => {
// فقط font-family و font-size رو از inline styles حذف کن، بقیه رو حفظ کن
sanitized = sanitized.replace(
/style\s*=\s*["']([^"']*?)["']/gi,
(match, styles) => {
(_, styles) => {
// فقط font-family و font-size رو حذف کن
const cleanedStyles = styles
.replace(/font-family\s*:\s*[^;]*;?/gi, "")