Skip to content

Commit 34d8997

Browse files
Update docs/_basic/acknowledging_requests.md
Co-authored-by: Ethan Zimbelman <[email protected]>
1 parent c17ead2 commit 34d8997

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-]{.*}$/
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)