Skip to content

Fix domain list host matching and invalid-pattern handling#213

Merged
bartekplus merged 1 commit intomasterfrom
codex/fix-domain-host-matching
Feb 24, 2026
Merged

Fix domain list host matching and invalid-pattern handling#213
bartekplus merged 1 commit intomasterfrom
codex/fix-domain-host-matching

Conversation

@bartekplus
Copy link
Owner

Summary

  • replace regex-like String.match() domain checks with normalized exact host matching
  • ignore invalid domain list entries instead of letting malformed patterns break checks
  • add unit coverage for exact matching, normalization, and invalid-entry regression
  • add e2e regression for whitelist behavior with an invalid entry plus localhost

Validation

  • npm test -- tests/utils.test.ts
  • npm run test:e2e -- tests/e2e/puppeteer-extension.test.ts -t "Domain whitelist matches exact host and ignores invalid patterns"

@bartekplus bartekplus merged commit ffb3527 into master Feb 24, 2026
4 checks passed
@bartekplus bartekplus deleted the codex/fix-domain-host-matching branch February 24, 2026 16:38
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