Skip to content

Commit

Permalink
fix: draft change
Browse files Browse the repository at this point in the history
  • Loading branch information
ioanmo226 committed Aug 21, 2024
1 parent 4a10998 commit 4a3d069
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ export class ComposeSenderModule extends ViewModule<ComposeView> {
htmlWithUpdatedFooter = inputHtml.replace(lastSignature, footer);
}
} else {
const signaturePattern = /--\s*<br\s*\/?>\s*[\s\S]*?(?=<br><br><blockquote dir="ltr">|On .* at .*, .*? wrote:|$)/;
const signaturePattern =
/--\s*<br\s*\/?>\s*[\s\S]*?(?=<br><\/div><div><br><\/div><div>|<br><br><blockquote dir="ltr"|On .* at .*, .*? wrote:|<br><\div><div><br><\div>|$)/;
htmlWithUpdatedFooter = inputHtml.replace(signaturePattern, footer);
}
Xss.sanitizeRender(inputEl, htmlWithUpdatedFooter);
Expand Down

0 comments on commit 4a3d069

Please sign in to comment.