1
0
Fork 0

Fix regex, refs #6895

pull/6866/merge
Jordi Boggiano 2017-12-17 14:02:55 +01:00
parent 9f723ba381
commit 4c8c574b6c
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ class GitLabDriver extends VcsDriver
*/
protected $portNumber;
const URL_REGEX = '#^(?:(?P<scheme>https?)://(?P<domain>.+?)\:?(?P<port>[0-9]+)?/|git@(?P<domain2>[^:]+):)(?P<parts>.+)/(?P<repo>[^/]+?)(?:\.git|/)?$#';
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.