Skip to content

fix issue with mutli-word queries in `filter`

Dean Jackson requested to merge fractaledmind:master into master

Created by: fractaledmind

This derives from the most-up-to-date version of alfred-workflow. I've added a small section in the filter method to accomodate multi-word queries. As it stood, multi-word queries would only match if they were the exact start of the value string. I've added an addendum to the MATCH_ATOM rule, which, if the query is more than one word, will check if the set of the query's words is a subset of the value's atoms. Thus, the value "Horace and the rhetoric of authority" would match on the query "horace authority", while previously this query would have returned no results.

Merge request reports