Skip to content

Fix: allow mixed-case scoped package names#40

Closed
JoeCardoso13 wants to merge 1 commit intomainfrom
fix-announce-bug-1
Closed

Fix: allow mixed-case scoped package names#40
JoeCardoso13 wants to merge 1 commit intomainfrom
fix-announce-bug-1

Conversation

@JoeCardoso13
Copy link
Collaborator

Summary

  • GitHub usernames can contain uppercase letters (e.g. JoeCardoso13), but SCOPED_REGEX only matched lowercase — causing the announce endpoint to reject valid names like @JoeCardoso13/openweathermap with a 400 error.
  • Added the /i flag to all name-validation regexes in packages.ts, bundles.ts, and skills.ts, and updated error messages to remove "lowercase".
  • Added two regression tests: one confirming mixed-case scopes are accepted, one confirming invalid characters are still rejected.

Test plan

  • pnpm --filter @nimblebrain/mpak-registry test — all 82 tests pass (80 existing + 2 new)

GitHub usernames can contain uppercase letters, but SCOPED_REGEX only
matched lowercase. Added the /i flag to all name-validation regexes
and updated error messages. Includes regression tests for mixed-case
acceptance and invalid-character rejection.
@JoeCardoso13
Copy link
Collaborator Author

Closes #39

@JoeCardoso13
Copy link
Collaborator Author

Changed to #41

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.

1 participant