diff options
| author | Joe Carstairs <65492573+Sycamost@users.noreply.github.com> | 2024-03-07 22:06:39 +0000 |
|---|---|---|
| committer | Joe Carstairs <65492573+Sycamost@users.noreply.github.com> | 2024-03-07 22:06:39 +0000 |
| commit | 4d43ccafc803c9347439504104baa956f60130cc (patch) | |
| tree | 655828fab79b1cdcf99f22f2875c4d0b3c26ece9 | |
| parent | bd655ed5aaca74f5bbf4b04a07dc1221a8154940 (diff) | |
syntax error
| -rw-r--r-- | src/app.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -37,7 +37,7 @@ app.post('/sms', (req, res) => { sendTextMessage([senderSubscription], confirmationMessage); } else { if (body.toLocaleLowerCase().startsWith('my name is ') || body.toLocaleLowerCase().startsWith('my name is: ')) { - const senderName = body.matchAll(/^my name is:? (.*)$/g)?.next()?.[1]; + const senderName = body.matchAll(/^my name is:? (.*)$/g)?.next()?.value?.[1]; if (!senderName) { const twiml = new MessagingResponse(); |
