From 5b6bf700bc3478da996b6afb927df9ade6286016 Mon Sep 17 00:00:00 2001 From: Joe Carstairs <65492573+Sycamost@users.noreply.github.com> Date: Thu, 7 Mar 2024 22:08:26 +0000 Subject: syntax error --- src/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/app.js b/src/app.js index 71b0d35..01cb753 100644 --- a/src/app.js +++ b/src/app.js @@ -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(); -- cgit v1.2.3