From b85e0eebc115688653d3739aa4928c1ddfc45311 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Thu, 24 Feb 2022 11:17:46 +0100 Subject: [PATCH] Allow 3rd parties to use URL_REGEX --- src/Composer/Repository/Vcs/GitLabDriver.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Composer/Repository/Vcs/GitLabDriver.php b/src/Composer/Repository/Vcs/GitLabDriver.php index 13ecd755d..2397b78d3 100644 --- a/src/Composer/Repository/Vcs/GitLabDriver.php +++ b/src/Composer/Repository/Vcs/GitLabDriver.php @@ -82,7 +82,7 @@ class GitLabDriver extends VcsDriver */ private $hasNonstandardOrigin = false; - private const URL_REGEX = '#^(?:(?Phttps?)://(?P.+?)(?::(?P[0-9]+))?/|git@(?P[^:]+):)(?P.+)/(?P[^/]+?)(?:\.git|/)?$#'; + public const URL_REGEX = '#^(?:(?Phttps?)://(?P.+?)(?::(?P[0-9]+))?/|git@(?P[^:]+):)(?P.+)/(?P[^/]+?)(?:\.git|/)?$#'; /** * Extracts information from the repository url.