diff --git a/src/components/molecules/EmailForm.svelte b/src/components/molecules/EmailForm.svelte index 174e7a7..a43e6d2 100644 --- a/src/components/molecules/EmailForm.svelte +++ b/src/components/molecules/EmailForm.svelte @@ -32,7 +32,7 @@ const formData = new FormData(target) const email = String(formData.get('email')) - if (email && email.match('/^([\w.-])+@([\w.-])+\.([a-zA-Z])+/')) { + if (email && email.match(/^([\w.-])+@([\w.-])+\.([a-zA-Z])+/)) { const req = await fetch('/api/newsletter', { method: 'POST', headers: { 'Content-Type': 'text/plain' },