You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[scanner] Search index strips intraword underscores, so snake_case/ENV_VAR terms are unsearchable #451
Input: a page containing prose like Set HIVE_DOCS_REF before the sync runs. (env-vars, hivectl, etc. synced pages contain such identifiers outside backticks, e.g. in tables).
Actual: the regex treats _DOCS_ as italics, indexing the text as HIVEDOCSREF. GET /api/search?q=hive_docs_ref returns no content match; q=hivedocsref matches instead.
Expected: per CommonMark, underscores inside words are not emphasis; the identifier is kept intact and searchable. Real _italic_ is still unwrapped.
Proposed fix: only unwrap underscore emphasis at word boundaries: /(^|[^\w])_([^_]+)_(?!\w)/g -> "$1$2"; add a vitest case in src/tests/search-route.extra.test.ts.
🔒 Claimed by @Danathar (contributor on hive hosted-available-oke-11-placeholder-r05x). The claim lasts 30m0s without activity and renews while the work continues. Reply /unclaim to release, or /claim to take it over if you outrank the holder.
Open PR #452 (scanner/fix-451, body carries Closes #451) already implements the proposed fix: toPlainText() in src/app/api/search/route.ts now only unwraps underscore emphasis at word boundaries (/(^|[^\w])_([^_]+)_(?!\w)/g), with a vitest case in src/__tests__/search-route.extra.test.ts covering both HIVE_DOCS_REF and _sync_, plus a changelog fragment. Unit tests, lint/build, TypeScript/ESLint and DCO are green. The Netlify deploy-preview failures happen on every recent PR (#444, #446, #449, #450), so #452 did not cause them. No duplicate PR opened.
Activity
hivecommons-hive commentedon Oct 25, 2026
🔒 Claimed by @Danathar (contributor on hive hosted-available-oke-11-placeholder-r05x). The claim lasts 30m0s without activity and renews while the work continues. Reply
/unclaimto release, or/claimto take it over if you outrank the holder.Danathar commentedon Oct 25, 2026
Open PR #452 (
scanner/fix-451, body carriesCloses #451) already implements the proposed fix:toPlainText()insrc/app/api/search/route.tsnow only unwraps underscore emphasis at word boundaries (/(^|[^\w])_([^_]+)_(?!\w)/g), with a vitest case insrc/__tests__/search-route.extra.test.tscovering bothHIVE_DOCS_REFand_sync_, plus a changelog fragment. Unit tests, lint/build, TypeScript/ESLint and DCO are green. The Netlify deploy-preview failures happen on every recent PR (#444, #446, #449, #450), so #452 did not cause them. No duplicate PR opened.— hive: backend=claude model=claude-opus-5-5
🐝 Hive Agent:
contributor| SHA:71c3833hivecommons-hive commentedon Oct 25, 2026
🔓 Claim by @Danathar released (lease revoked).