## Summary
- Extract identical `numericOnly` inline functions from powerball and megamillions into shared `sites/internal/parse.NumericOnly` with unit tests
- Extract duplicated DuckDuckGo result parsing from `Search()` and `GetResults()` into shared `extractResults()` helper
## Test plan
- [x] `go build ./...` passes
- [x] `go test ./...` passes
- [x] `go vet ./...` passes
- [x] New `parse.NumericOnly` unit tests pass
Closes #13, #14
**Parent:** #31 (Phase 3, PR 9)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
- Extract identical numericOnly inline functions from powerball and
megamillions into shared sites/internal/parse.NumericOnly with tests
- Extract duplicated DuckDuckGo result parsing from Search() and
GetResults() into shared extractResults() helper
Closes#13, #14
Co-Authored-By: Claude Opus 4.6 <[email protected]>
Claude
merged commit 7f24e97131 into main2026-02-15 16:28:55 +00:00
Claude
deleted branch refactor/deduplicate-helpers2026-02-15 16:28:55 +00:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Summary
numericOnlyinline functions from powerball and megamillions into sharedsites/internal/parse.NumericOnlywith unit testsSearch()andGetResults()into sharedextractResults()helperTest plan
go build ./...passesgo test ./...passesgo vet ./...passesparse.NumericOnlyunit tests passCloses #13, #14
Parent: #31 (Phase 3, PR 9)
🤖 Generated with Claude Code