vinta-awesome-python/website/tests
Vinta Chen 1ae889b4fd
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 <noreply@anthropic.com>
2026-03-30 15:03:06 +08:00
..
test_build.py test: add coverage for detect_source_type, format_stars_short, extract_entries, and last_commit_at parsing 2026-03-23 02:25:44 +08:00
test_fetch_github_stars.py fix: stricter GitHub owner/repo regexes and injection tests 2026-03-30 15:03:06 +08:00
test_readme_parser.py refactor(parser): remove resources parsing, preview, and content_html fields 2026-03-23 01:43:19 +08:00