Fix catch matching in typeahead, dont bill services past their end date

This commit is contained in:
Deon George
2020-12-01 21:23:07 +11:00
parent 1242dffa20
commit 4718bf3057
2 changed files with 9 additions and 6 deletions

View File

@@ -313,7 +313,7 @@
text = text.replace((/[\(\)\/\.\*\+\?\[\]]/g), function (mat) {
return '\\' + mat;
});
var reg = new RegExp(text, 'g');
var reg = new RegExp(text, 'ig');
var m;
for (i = 0; i < first.length; ++i) {
m = first[i].match(reg);