diff options
| author | Joe Carstairs <65492573+Sycamost@users.noreply.github.com> | 2024-03-07 22:08:26 +0000 |
|---|---|---|
| committer | Joe Carstairs <65492573+Sycamost@users.noreply.github.com> | 2024-03-07 22:08:26 +0000 |
| commit | 5b6bf700bc3478da996b6afb927df9ade6286016 (patch) | |
| tree | 7965a9da875d49b708d9ed8fbcf04aa944b95d0d /src/app.js | |
| parent | 4d43ccafc803c9347439504104baa956f60130cc (diff) | |
syntax error
Diffstat (limited to 'src/app.js')
| -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()?.value?.[1]; + const senderName = body.matchAll(/^my name is:? (.*)$/gi)?.next()?.value?.[1]; if (!senderName) { const twiml = new MessagingResponse(); |
