We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1314c7b commit 17e54c4Copy full SHA for 17e54c4
communication.js
@@ -6,7 +6,7 @@ var app = require('express'); // Move this if necessary.
6
app.POST('/receive',function() {});
7
8
client.messages(message.sid).get(function(err, message) {
9
- var number_regex = /\d{1,50}/; // Change the number depending on the math constraints.
+ var number_regex = /\d{1,50}/g; // Change the number depending on the math constraints.
10
var numbers = message.body.match(number_regex); // match should return an array with the matches in them, if any.
11
if (numbers.length < 2) {
12
client.messages.create({
0 commit comments