Highlight does not care about case

This commit is contained in:
nemunaire 2020-09-14 10:24:29 +02:00
parent 3b6683cb55
commit 5fd17156fb
1 changed files with 1 additions and 1 deletions

View File

@ -294,7 +294,7 @@ angular.module("AtsebaytApp")
$('.card-text').each(function (k, i) {
var e = $(i)
e.html(e.text().replace(new RegExp('(' + words + ')', 'g'), '<span class="bg-warning">$1</span>'))
e.html(e.text().replace(new RegExp('(' + words + ')', 'gi'), '<span class="bg-warning">$1</span>'))
})
}