Skip to content

Commit

Permalink
Allow 3rd parties to use URL_REGEX
Browse files Browse the repository at this point in the history
  • Loading branch information
Seldaek committed Feb 24, 2022
1 parent 1e914f8 commit b85e0ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Composer/Repository/Vcs/GitLabDriver.php
Expand Up @@ -82,7 +82,7 @@ class GitLabDriver extends VcsDriver
*/
private $hasNonstandardOrigin = false;

private const URL_REGEX = '#^(?:(?P<scheme>https?)://(?P<domain>.+?)(?::(?P<port>[0-9]+))?/|git@(?P<domain2>[^:]+):)(?P<parts>.+)/(?P<repo>[^/]+?)(?:\.git|/)?$#';
public const URL_REGEX = '#^(?:(?P<scheme>https?)://(?P<domain>.+?)(?::(?P<port>[0-9]+))?/|git@(?P<domain2>[^:]+):)(?P<parts>.+)/(?P<repo>[^/]+?)(?:\.git|/)?$#';

/**
* Extracts information from the repository url.
Expand Down

0 comments on commit b85e0ee

Please sign in to comment.