Skip to content

Commit

Permalink
Merge pull request #1 from pservais/master
Browse files Browse the repository at this point in the history
Case-insensitive log filtering added by 'pservais'
  • Loading branch information
galadril committed Sep 25, 2015
2 parents f8c586f + 00e139e commit f8715c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/methods.js
Original file line number Diff line number Diff line change
Expand Up @@ -555,8 +555,8 @@ function RefreshLogData() {
//show logs
for (i = (arrData.length - 1); i > 0; i--) {
var totalText = arrData[i][1];

if (filter.length <= 0 || totalText.indexOf(filter) >= 0) {
var lowerText = totalText.toLowerCase();
if (filter.length <= 0 || lowerText.indexOf(filter.toLowerCase()) >= 0) {
var res = totalText.split(" ");
text += "<font color='#8bc34a' style='padding-right:10px'>" + res[0] + " " + res[1] + " </font>";
totalText = totalText.replace(res[0] + " " + res[1], "")
Expand Down

0 comments on commit f8715c7

Please sign in to comment.