MCPcopy Create free account
hub / github.com/error311/FileRise / hay

Function hay

public/js/fileListView.js:5030–5030  ·  view source on GitHub ↗
(v)

Source from the content-addressed store, hash-verified

5028 // simple case-insensitive substring match on the same fields
5029 const q = String(searchTerm).toLowerCase();
5030 const hay = (v) => (v == null ? '' : String(v)).toLowerCase();
5031 return fileData.filter(item => {
5032 if (hay(item.name).includes(q)) return true;
5033 if (hay(item.uploader).includes(q)) return true;

Callers 1

searchFilesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected