Skip to content

Commit f8715c7

Browse files
committed
Merge pull request #1 from pservais/master
Case-insensitive log filtering added by 'pservais'
2 parents f8c586f + 00e139e commit f8715c7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

js/methods.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -555,8 +555,8 @@ function RefreshLogData() {
555555
//show logs
556556
for (i = (arrData.length - 1); i > 0; i--) {
557557
var totalText = arrData[i][1];
558-
559-
if (filter.length <= 0 || totalText.indexOf(filter) >= 0) {
558+
var lowerText = totalText.toLowerCase();
559+
if (filter.length <= 0 || lowerText.indexOf(filter.toLowerCase()) >= 0) {
560560
var res = totalText.split(" ");
561561
text += "<font color='#8bc34a' style='padding-right:10px'>" + res[0] + " " + res[1] + " </font>";
562562
totalText = totalText.replace(res[0] + " " + res[1], "")

0 commit comments

Comments
 (0)