diff --git a/src/Composer/Repository/Vcs/SvnDriver.php b/src/Composer/Repository/Vcs/SvnDriver.php index f9b986c91..1e100bf96 100644 --- a/src/Composer/Repository/Vcs/SvnDriver.php +++ b/src/Composer/Repository/Vcs/SvnDriver.php @@ -90,7 +90,7 @@ class SvnDriver extends VcsDriver { $identifier = '/' . trim($identifier, '/') . '/'; if (!isset($this->infoCache[$identifier])) { - preg_match('{^(.+?)(@\d+)?$}', $identifier, $match); + preg_match('{^(.+?)(@\d+)?/$}', $identifier, $match); if (!empty($match[2])) { $identifier = $match[1]; $rev = $match[2];