Skip to content

fix: accept Git Bash-rewritten library IDs#2278

Open
DeoJin wants to merge 1 commit intoupstash:masterfrom
DeoJin:fix/issue-2277
Open

fix: accept Git Bash-rewritten library IDs#2278
DeoJin wants to merge 1 commit intoupstash:masterfrom
DeoJin:fix/issue-2277

Conversation

@DeoJin
Copy link
Copy Markdown
Contributor

@DeoJin DeoJin commented Mar 19, 2026

Summary

  • normalize Git Bash on Windows path rewrites like C:/Program Files/Git/facebook/react back into Context7 library IDs
  • keep existing valid /owner/repo[/version] inputs unchanged
  • add CLI tests covering valid IDs, Git Bash rewrites, and unrelated filesystem paths

Testing

  • pnpm --filter ctx7 test -- src/__tests__/docs-command.test.ts
  • pnpm --filter ctx7 typecheck

Fixes #2277

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.

Git Bash on Windows interprets /owner/repo as file path instead of library ID

1 participant