fix(validation): update git:// URL validation to support port numbers and tilde characters in paths

This commit is contained in:
Andras Bacsai
2025-09-29 12:21:15 +02:00
parent a8bdc3bbfe
commit 502dd72a34
2 changed files with 3 additions and 2 deletions

View File

@@ -136,6 +136,7 @@ it('validates git:// protocol URLs', function () {
$validUrls = [
'git://github.com/user/repo.git',
'git://gitlab.com/user/repo.git',
'git://git.sr.ht:~user/repo.git',
];
foreach ($validUrls as $url) {