Summary
Snippets miss matches that scoring finds in mixed-case bodies.
Target milestone: 2.8.5
Work branch: 2.8.5/issue-4-snippet-case
Problem
findSnippetInBlob searches original-case blob; scoring lowercases bags. Mixed-case notes can score but show empty/wrong snippets.
Expected behavior
Snippet extraction uses same normalization as scoring.
Suggested approach
Lowercase blob before variant search or search case-insensitively with correct highlight offsets.
Files / areas
lib/engine.js → findSnippetInBlob (~155–160)
Acceptance criteria
Metadata
| Field |
Value |
| Priority |
P1 |
| Milestone |
2.8.5 |
| Branch |
2.8.5/issue-4-snippet-case |
Summary
Snippets miss matches that scoring finds in mixed-case bodies.
Problem
findSnippetInBlobsearches original-case blob; scoring lowercases bags. Mixed-case notes can score but show empty/wrong snippets.Expected behavior
Snippet extraction uses same normalization as scoring.
Suggested approach
Lowercase blob before variant search or search case-insensitively with correct highlight offsets.
Files / areas
lib/engine.js→findSnippetInBlob(~155–160)Acceptance criteria
Metadata
P12.8.52.8.5/issue-4-snippet-case