Skip to content

Commit

Permalink
Merge pull request #5 from godbout/master
Browse files Browse the repository at this point in the history
Make the filtering case insensitive
  • Loading branch information
joetannenbaum authored Aug 14, 2018
2 parents d587586 + aafd335 commit 88e042d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Workflow.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public function filterResults($query, $property = 'title')
$query = (string) $query;

$this->results = array_filter($this->results, function ($result) use ($query, $property) {
return strstr($result->$property, $query) !== false;
return stristr($result->$property, $query) !== false;
});

return $this;
Expand Down

0 comments on commit 88e042d

Please sign in to comment.