SIGN IN SIGN UP
vinta / awesome-python UNCLAIMED

An opinionated list of Python frameworks, libraries, tools, and resources.

289849 0 0 Python

fix: stricter GitHub owner/repo regexes and injection tests

Split _GITHUB_NAME_RE into separate owner and repo patterns.
Owner regex now rejects leading/trailing hyphens and dots (matching
GitHub's actual username rules). Repo regex requires alphanumeric
start but allows dots and underscores anywhere after.

New tests cover GraphQL injection attempts, invalid leading chars,
and valid hyphenated/underscore/dot combinations.

Co-Authored-By: Claude <[email protected]>
V
Vinta Chen committed
1ae889b4fd4c1a3e0b35acd6e10ee2da16f294e6
Parent: 87c5f3b