kentcdodds / match-sorter

Simple, expected, and deterministic best-match sorting of an array in JavaScript

Home Page:https://npm.im/match-sorter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Question: Multiple search terms and OR results

tflx opened this issue · comments

So I may not understand the documentation, but I can't figure how to do this:

  • I have a list of countries like: ["germany", "france", "spain"]
  • On a search of "germany france" I want it to match both "germany" and "france"
  • I get zero results

Thank you

edit
Sorry, I think I got it now with help from #97