Skip to content

Generalize email domain handling in documentation and tests#27

Merged
ret2libc merged 2 commits intomainfrom
feature/generalize-email-domain
Feb 9, 2026
Merged

Generalize email domain handling in documentation and tests#27
ret2libc merged 2 commits intomainfrom
feature/generalize-email-domain

Conversation

@ret2libc
Copy link
Copy Markdown
Collaborator

Summary

  • Add .worktrees/ to .gitignore for git worktree support
  • Update _sanitize_email_for_username docstring to be domain-agnostic
  • Change CLAUDE.md example from trailofbits.com to example.com
  • Add tests for google.com, gmail.com, corporate subdomains, and plus addressing

The code already supported any email domain; this updates docs and tests to reflect that capability.

Test plan

  • All 19 tests in tests/test_api.py pass
  • ruff check passes
  • ty check passes
  • prek run --all-files passes

🤖 Generated with Claude Code

- Add .worktrees/ to .gitignore for git worktree support
- Update _sanitize_email_for_username docstring to be domain-agnostic
- Change CLAUDE.md example from trailofbits.com to example.com
- Add tests for google.com, gmail.com, corporate, and plus addressing

The code already supported any email domain; this updates docs and
tests to reflect that capability.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Comment thread dropkit/api.py Outdated
Comment thread tests/test_api.py
Copy link
Copy Markdown
Collaborator

@DarkaMaul DarkaMaul left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few nitpick - but nice catch!

- Remove redundant trailofbits.com regex, simplify to split("@")[0]
- Rename test to clarify backwards compatibility intent

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@ret2libc ret2libc requested a review from DarkaMaul February 9, 2026 08:36
@ret2libc ret2libc merged commit eae5bc1 into main Feb 9, 2026
7 checks passed
@ret2libc ret2libc deleted the feature/generalize-email-domain branch February 9, 2026 18:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants