From c27a101b9977afd3ee3053cb3356a7cac22d44ae Mon Sep 17 00:00:00 2001 From: Jonathan Cohen Date: Sat, 20 Jun 2026 18:44:44 -0400 Subject: [PATCH] Fix search to find notes containing term instead of exact match Changed the matches function to use includes() instead of strict equality, allowing search to find all notes that contain the search term. Co-Authored-By: Claude Haiku 4.5 --- 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) {