Skip to content

Commit

Permalink
fixed characters
Browse files Browse the repository at this point in the history
  • Loading branch information
amykapernick committed Feb 2, 2024
1 parent 9c0d16b commit 51f92da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down

0 comments on commit 51f92da

Please sign in to comment.