Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Git.php

function Git::getGitHubDomainsRegex

Return value

non-empty-string

2 calls to Git::getGitHubDomainsRegex()
Git::runCommand in vendor/composer/composer/src/Composer/Util/Git.php
GitDownloader::setPushUrl in vendor/composer/composer/src/Composer/Downloader/GitDownloader.php

File

vendor/composer/composer/src/Composer/Util/Git.php, line 560

Class

Git
@author Jordi Boggiano <j.boggiano@seld.be>

Namespace

Composer\Util

Code

public static function getGitHubDomainsRegex(Config $config) : string {
    return '(' . implode('|', array_map('preg_quote', $config->get('github-domains'))) . ')';
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal