Skip to content

Commit

Permalink
Email refactor (#364)
Browse files Browse the repository at this point in the history
* Use replace instead of replaceAll

* Extract html email content to html folder

* Fixed indentation in email html files

* Lint html code

* Run Prettier

* Update submitted message to remind applicant to check spam and quarantine

---------

Co-authored-by: carolhe134 <[email protected]>
  • Loading branch information
carolhe134 and carolhe134 authored Sep 19, 2023
1 parent 3fdca06 commit 7c17552
Show file tree
Hide file tree
Showing 25 changed files with 7,178 additions and 3,724 deletions.
2 changes: 1 addition & 1 deletion pages/api/email/email.ts → email/email.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { SendEmailRequest, SES } from '@aws-sdk/client-ses';

export const escapeChars = (str: string) => {
return str.replaceAll(/[&<>"`=\/]/g, '');
return str.replace(/[&<>"`=\/]/g, '');
};

const ses = new SES({
Expand Down
Loading

1 comment on commit 7c17552

@vercel
Copy link

@vercel vercel bot commented on 7c17552 Sep 19, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.