Skip to content

Commit

Permalink
[Console] Allow https url instead of git:// on SetupCICommand (#3799)
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonasik committed May 11, 2023
1 parent cc92d45 commit 4db20ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Console/Command/SetupCICommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ final class SetupCICommand extends Command
{
/**
* @var string
* @see https://regex101.com/r/etcmog/1
* @see https://regex101.com/r/etcmog/2
*/
private const GITHUB_REPOSITORY_REGEX = '#github\.com:(?<repository_name>.*?)\.git#';
private const GITHUB_REPOSITORY_REGEX = '#github\.com[:\/](?<repository_name>.*?)\.git#';

public function __construct(
private readonly SymfonyStyle $symfonyStyle
Expand Down

0 comments on commit 4db20ca

Please sign in to comment.