1
0
Fork 0

Allow dot in URL scheme

This makes it possible to support SSH2 urls, like ssh2.scp://
See: http://www.php.net/manual/en/wrappers.ssh2.php
pull/1177/head
Sander Marechal 2012-10-03 10:50:02 +02:00
parent a5eaba805c
commit 4799053ca9
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ class ComposerRepository extends ArrayRepository implements NotifiableRepository
public function __construct(array $repoConfig, IOInterface $io, Config $config)
{
if (!preg_match('{^\w+://}', $repoConfig['url'])) {
if (!preg_match('{^[\w.]+://}', $repoConfig['url'])) {
// assume http as the default protocol
$repoConfig['url'] = 'http://'.$repoConfig['url'];
}