Skip to content

Fix search to match notes containing the term#13

Open
vinla wants to merge 1 commit into
mate-academy:mainfrom
vinla:fix/search-substring-match
Open

Fix search to match notes containing the term#13
vinla wants to merge 1 commit into
mate-academy:mainfrom
vinla:fix/search-substring-match

Conversation

@vinla

@vinla vinla commented Jun 23, 2026

Copy link
Copy Markdown

search() used exact string equality, so it only returned notes whose text matched the term verbatim. Use String.includes() so a note is returned whenever the term appears anywhere in its text.

search() used exact string equality, so it only returned notes whose
text matched the term verbatim. Use String.includes() so a note is
returned whenever the term appears anywhere in its text.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant