diff --git a/src/app/actions.ts b/src/app/actions.ts index bb9452d..c2bd582 100644 --- a/src/app/actions.ts +++ b/src/app/actions.ts @@ -46,7 +46,7 @@ export async function submit (guest: string, formData: FormData) fieldValue = 'true' } - const fieldData = notionFields[type].replace('{{value}}', fieldValue.replace('"', '\\"')) + const fieldData = notionFields[type].replace('{{value}}', fieldValue.replace(/[.*+?^${}()|[\]\\]/g, '\\$&')) updatedData[id] = { ...updatedData[id],