From c0ec8f16f96bf6d9b2fcfbd4ee003f770c32bc63 Mon Sep 17 00:00:00 2001 From: till Date: Sun, 18 Mar 2012 16:36:30 +0100 Subject: [PATCH] * fixSvnUrl() * extend regex to match more possible svn hosts --- src/Composer/Repository/Vcs/SvnDriver.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Composer/Repository/Vcs/SvnDriver.php b/src/Composer/Repository/Vcs/SvnDriver.php index f1ab75d42..f6a7de275 100644 --- a/src/Composer/Repository/Vcs/SvnDriver.php +++ b/src/Composer/Repository/Vcs/SvnDriver.php @@ -50,6 +50,7 @@ class SvnDriver extends VcsDriver */ public function __construct($url, IOInterface $io, ProcessExecutor $process = null) { + $url = self::fixSvnUrl($url); parent::__construct($this->baseUrl = rtrim($url, '/'), $io, $process); if (false !== ($pos = strrpos($url, '/trunk'))) { @@ -314,7 +315,8 @@ class SvnDriver extends VcsDriver */ public static function supports($url, $deep = false) { - if (preg_match('#(^svn://|//svn\.)#i', $url)) { + $url = self::fixSvnUrl($url); + if (preg_match('#((^svn://)|(^svn\+ssh://)|(^file:///)|(^http)|(svn\.))#i', $url)) { return true; }