oops missed a check

This commit is contained in:
Dominic
2025-09-03 13:01:03 -04:00
committed by GitHub
parent 719d094754
commit 758fe18d79

View File

@@ -85,7 +85,7 @@ class ValidGitRepositoryUrl implements ValidationRule
} }
// Validate SSH URL format (git@host:user/repo.git) // Validate SSH URL format (git@host:user/repo.git)
if (! preg_match('/^git@[a-zA-Z0-9\.\-]+:[a-zA-Z0-9\-_\/\.]+$/', $value)) { if (! preg_match('/^git@[a-zA-Z0-9\.\-]+:[a-zA-Z0-9\-_\/\.~]+$/', $value)) {
$fail('The :attribute is not a valid SSH repository URL.'); $fail('The :attribute is not a valid SSH repository URL.');
return; return;