tests(src/regex): Add tests for anonymous publisher discovery extensions