(v)
| 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; |