Skip to content

Commit

Permalink
solves filter bug due to todoObject.toString, issue ransome1#647
Browse files Browse the repository at this point in the history
  • Loading branch information
zerodat committed Jan 28, 2024
1 parent 7d5d600 commit 9f438da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/modules/Filters/FilterQuery.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,11 @@ function runQuery(todoObject, compiledQuery) {
break;
case "string":
next = q.shift(); // the string value to match
stack.push(todoObject.toString().toLowerCase().indexOf(next.toLowerCase()) !== -1);
stack.push(todoObject.string.toLowerCase().indexOf(next.toLowerCase()) !== -1);
break;
case "regex":
next = q.shift(); // the regex to match
stack.push(next.test(todoObject.toString()));
stack.push(next.test(todoObject.string));
break;
case "==":
operand2 = stack.pop();
Expand Down

0 comments on commit 9f438da

Please sign in to comment.