(query, text)
| 302 | } |
| 303 | |
| 304 | function 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 | |
| 312 | function matchesQuery(entry, query, visible) { |
| 313 | if (!entry || entry.id === "root") return false |
no test coverage detected