Skip to content

Commit a52e790

Browse files
Merge pull request #2086 from technically-tracy/main
Update acknowledging_requests.md
2 parents e5728c0 + 34d8997 commit a52e790

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/_basic/acknowledging_requests.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ We recommend calling `ack()` right away before sending a new message or fetching
1313

1414
```javascript
1515
// Regex to determine if this is a valid email
16-
let isEmail = /^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}$/
16+
let isEmail = /^[\w\-\.]+@([\w\-]+\.)+[\w\-]+$/
1717
// This uses a constraint object to listen for modal submissions with a callback_id of ticket_submit
1818
app.view('ticket_submit', async ({ ack, view }) => {
1919
// get the email value from the input block with `email_address` as the block_id

0 commit comments

Comments
 (0)