Skip to content

fix: treat touchSet trailing slash as directory prefix glob#73

Merged
nigel-dev merged 1 commit intomainfrom
fix/touchset-trailing-slash
Feb 15, 2026
Merged

fix: treat touchSet trailing slash as directory prefix glob#73
nigel-dev merged 1 commit intomainfrom
fix/touchset-trailing-slash

Conversation

@nigel-dev
Copy link
Owner

Summary

  • Fixes touchSet validation treating trailing / as a literal path instead of a directory prefix, causing false-positive violations for files inside the directory
  • Adds test covering the trailing slash normalization

Closes #72

Changes

src/lib/merge-train.ts — Normalize touchSet patterns ending with / to append ** before glob matching. ai-docs/gap-analysis/ai-docs/gap-analysis/**.

tests/lib/merge-train.test.ts — New test: should treat trailing slash as directory prefix glob.

How to test

bun test

@nigel-dev nigel-dev merged commit f5b06f1 into main Feb 15, 2026
4 checks passed
@nigel-dev nigel-dev deleted the fix/touchset-trailing-slash branch February 15, 2026 18:56
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.

bug: touchSet trailing slash treated as literal instead of directory prefix

1 participant