charton API / @chart-on/ui / index / fuzzyScore
Function: fuzzyScore()
fuzzyScore(
text,query):number|null
Defined in: ui/src/command-palette-model.ts:68
How well text matches query (both lower case): lower is better, null for no match. In order: the whole text, its start, the start of a word, the initials of its words, anywhere in it, and last its characters in order with others between them (fewer skipped characters rank higher).
Parameters
text
string
query
string
Returns
number | null