Merge pull request #83 from sanpii/github
Dot is allowed in github repository name
This commit is contained in:
commit
f6f422520a
|
@ -282,7 +282,7 @@ class ProjectController extends \PHPCI\Controller
|
||||||
break;
|
break;
|
||||||
case 'github':
|
case 'github':
|
||||||
case 'bitbucket':
|
case 'bitbucket':
|
||||||
if (!preg_match('/^[a-zA-Z0-9_\-]+\/[a-zA-Z0-9_\-]+$/', $val)) {
|
if (!preg_match('/^[a-zA-Z0-9_\-]+\/[a-zA-Z0-9_\-\.]+$/', $val)) {
|
||||||
throw new \Exception('Repository name must be in the format "owner/repo".');
|
throw new \Exception('Repository name must be in the format "owner/repo".');
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue