From 773168fec6c8a8eff590d3b6b8baa37150ccea74 Mon Sep 17 00:00:00 2001 From: vvjadmin Date: Tue, 23 Jun 2026 22:56:22 +1000 Subject: [PATCH] fix: use substring match in notes search matches() was using strict equality, causing all search tests to fail. Co-Authored-By: Claude Sonnet 4.6 --- lib/store.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/store.js b/lib/store.js index 1d9215f..7ceefa0 100644 --- a/lib/store.js +++ b/lib/store.js @@ -38,7 +38,7 @@ function remove(id) { // Returns the notes that match `term`. function matches(notes, term) { - return notes.filter((note) => note.text === term); + return notes.filter((note) => note.text.includes(term)); } function search(term) {