MCPcopy Create free account
hub / github.com/basecamp/omarchy / descriptionTextMatches

Function descriptionTextMatches

shell/plugins/menu/MenuModel.js:304–310  ·  view source on GitHub ↗
(query, text)

Source from the content-addressed store, hash-verified

302}
303
304function descriptionTextMatches(query, text) {
305 var terms = String(query || "").toLowerCase().trim().split(/\s+/)
306 for (var i = 0; i < terms.length; i++) {
307 if (terms[i] && !termInSearchWords(terms[i], text)) return false
308 }
309 return true
310}
311
312function matchesQuery(entry, query, visible) {
313 if (!entry || entry.id === "root") return false

Callers 1

searchScoreFunction · 0.85

Calls 1

termInSearchWordsFunction · 0.85

Tested by

no test coverage detected