summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/app.js2
1 files changed, 1 insertions, 1 deletions
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();