1
0
Fork 0

Allow 3rd parties to use URL_REGEX

pull/10571/head
Jordi Boggiano 2022-02-24 11:17:46 +01:00 committed by GitHub
parent 1e914f8afc
commit b85e0eebc1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ class GitLabDriver extends VcsDriver
*/ */
private $hasNonstandardOrigin = false; 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. * Extracts information from the repository url.