{"version":"2.1.10","anchor":"host-pattern-matching-for-enterprise-marketplace-sources","canonical_anchor":"host-pattern-matching-for-enterprise-marketplace-sources","heading":"Host Pattern Matching for Enterprise Marketplace Sources","tier":null,"area":null,"scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.10\/e\/host-pattern-matching-for-enterprise-marketplace-sources","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.10","markdown":"### Host Pattern Matching for Enterprise Marketplace Sources\n\n**What**\n\nEnterprises can now use regex patterns to allow plugin marketplaces from specific domains without listing each one individually.\n\nUsage: In `policySettings.strictKnownMarketplaces`, add an entry with `source: \"hostPattern\"`:\n\n`{ \"source\": \"hostPattern\", \"hostPattern\": \"^github\\\\.mycompany\\\\.com$\" }` **Details** - Matches the hostname extracted from any marketplace source type - For GitHub sources, matches against `\"github.com\"` - For Git sources (SSH or HTTPS), extracts the hostname from the URL - Allows enterprise IT to permit all marketplaces from internal GitHub Enterprise instances **Evidence** `Yn4()` at line 91027 (host pattern regex matcher, uses `new RegExp(Q.hostPattern).test(B)`)"}