anfragment / zen

Simple, free and efficient ad-blocker and privacy guard for Windows, macOS and Linux
https://zenprivacy.net
MIT License
2.39k stars 60 forks source link

Domain rules containing regular expressions containing the | symbol match requests incorrectly #60

Closed anfragment closed 9 months ago

anfragment commented 9 months ago

The following test needs to be fixed.

--- FAIL: TestRegex (0.00s)
    domain_test.go:106: domain=/^example\.(com|org)$/ should match a request with example.com as the referer
    domain_test.go:111: domain=/^example\.(com|org)$/ should match a request with example.org as the referer