ext-apps/docs
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Jonathan Hefner 1215bf33c3
Fix extractRegion() matching region names that are substrings of others
The `extractRegion()` function in `sync-snippets.ts` used `indexOf()` to
find region markers like `//#region persistData`. This caused incorrect
matching when one region name was a prefix of another—searching for
`persistData` would match `//#region persistDataServer` first if it
appeared earlier in the file.

The fix detects the file's line ending style and appends it to region
markers, ensuring exact matches:
- `//#region persistData\n` no longer matches `//#region persistDataServer\n`

This corrects `docs/patterns.md` where the `persistData` code fence was
incorrectly showing server-side code instead of client-side localStorage
helpers.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-27 12:57:11 -06:00
..
agent-skills.md Add Codex and Goose to documentation 2026-01-25 20:28:11 -06:00
index.html Add API docs (#29) 2025-11-27 22:09:22 +00:00
migrate_from_openai_apps.md fix(docs): improve OpenAI migration guide accuracy (#349) 2026-01-25 19:03:43 +02:00
overview.md chore: stable spec release 2026-01-26 and SDK v1.0.0 (#362) 2026-01-26 17:31:33 +00:00
patterns.md Fix extractRegion() matching region names that are substrings of others 2026-01-27 12:57:11 -06:00
patterns.tsx docs: standardize UI terminology to use "view" consistently (#325) 2026-01-23 04:36:52 +02:00
quickstart-success.png Rewrite Quickstart guide with type-checked code examples 2026-01-24 09:41:51 -06:00
quickstart.md Expand Agent Skills guide 2026-01-25 14:18:04 -06:00
testing-mcp-apps.md Fix Claude documentation URLs 2026-01-26 11:02:25 -06:00