From 71b584e31c67d89c4a63d48b4acc968624acb106 Mon Sep 17 00:00:00 2001 From: Jeremy Skirrow Date: Tue, 23 Jun 2026 10:44:11 -0500 Subject: [PATCH] Fix search matching to use substring match instead of exact equality 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) {