From c17ead2d93ac7c189cf959e4e2d728ffd0196733 Mon Sep 17 00:00:00 2001 From: Tracy Rericha <108959677+technically-tracy@users.noreply.github.com> Date: Thu, 4 Apr 2024 11:21:36 -0400 Subject: [PATCH 1/2] Update acknowledging_requests.md --- docs/_basic/acknowledging_requests.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/_basic/acknowledging_requests.md b/docs/_basic/acknowledging_requests.md index bac1e6660..655bc2982 100644 --- a/docs/_basic/acknowledging_requests.md +++ b/docs/_basic/acknowledging_requests.md @@ -13,7 +13,7 @@ We recommend calling `ack()` right away before sending a new message or fetching ```javascript // Regex to determine if this is a valid email -let isEmail = /^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}$/ +let isEmail = /^[\w\-\.]+@([\w-]+\.)+[\w-]{.*}$/ // This uses a constraint object to listen for modal submissions with a callback_id of ticket_submit app.view('ticket_submit', async ({ ack, view }) => { // get the email value from the input block with `email_address` as the block_id From 34d89978e9a0271281aee42c368d86bcaec00771 Mon Sep 17 00:00:00 2001 From: Tracy Rericha <108959677+technically-tracy@users.noreply.github.com> Date: Thu, 4 Apr 2024 12:54:00 -0400 Subject: [PATCH 2/2] Update docs/_basic/acknowledging_requests.md Co-authored-by: Ethan Zimbelman --- docs/_basic/acknowledging_requests.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/_basic/acknowledging_requests.md b/docs/_basic/acknowledging_requests.md index 655bc2982..4556c3317 100644 --- a/docs/_basic/acknowledging_requests.md +++ b/docs/_basic/acknowledging_requests.md @@ -13,7 +13,7 @@ We recommend calling `ack()` right away before sending a new message or fetching ```javascript // Regex to determine if this is a valid email -let isEmail = /^[\w\-\.]+@([\w-]+\.)+[\w-]{.*}$/ +let isEmail = /^[\w\-\.]+@([\w\-]+\.)+[\w\-]+$/ // This uses a constraint object to listen for modal submissions with a callback_id of ticket_submit app.view('ticket_submit', async ({ ack, view }) => { // get the email value from the input block with `email_address` as the block_id