Allow 3rd parties to use URL_REGEX
parent
1e914f8afc
commit
b85e0eebc1
|
@ -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.
|
||||||
|
|
Loading…
Reference in New Issue