ext-apps/scripts
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
..
check-versions.mjs chore: bump ext-apps to 1.0.1 (#369) 2026-01-26 22:32:34 +00:00
generate-schemas.ts chore: bump to 0.2.2 + make Zod schemas version-agnostic (v3.25+/v4) (#178) 2025-12-17 20:55:59 +00:00
run-bun.mjs fix: Windows compatibility - bun as optional dep, cross-env for examples (#145) 2025-12-16 14:07:38 +00:00
setup-bun.mjs chore: release 0.2.1 - widen @oven/bun-* version range (#176) 2025-12-17 15:56:17 +00:00
sync-snippets.ts Fix extractRegion() matching region names that are substrings of others 2026-01-27 12:57:11 -06:00
typedoc-plugin-fix-mermaid-entities.mjs Fix mermaid diagram arrowheads not rendering 2026-01-24 16:52:49 -06:00