Merge pull request #83 from sanpii/github

Dot is allowed in github repository name
This commit is contained in:
Dan Cryer 2013-06-25 04:29:30 -07:00
commit f6f422520a

View file

@ -282,7 +282,7 @@ class ProjectController extends \PHPCI\Controller
break;
case 'github':
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".');
}
break;