mirror of
https://github.com/home-assistant/frontend.git
synced 2026-04-20 09:34:56 +00:00
* Replace sequence matcher with VS Code's score-based implementation * Remove everything not related to fuzzyScore and matchSubstring * Fix bug when filter length <= 3 * Add licensing and credit to Microsoft * Remove unnecessary character codes * Remove old sequence matcher, update tests, fix issue with not finding best score in list of words * Remove unnecessary sequence precheck, refactor client api to remove array * Fix issue with score sorting not implemented correctly and thus not actually sorting by score * Update src/common/string/filter/sequence-matching.ts Co-authored-by: Bram Kragten <mail@bramkragten.nl> * Remove unnecessary string return from fuzzy matcher. Clean up code * Remove globals from filter. Move sorting logic into matcher * Update function description, make score property optional. Co-authored-by: Bram Kragten <mail@bramkragten.nl>