strip /downloads from url

This commit is contained in:
cornernote 2015-08-12 09:55:46 +09:30
parent d0f53128cc
commit 0fef317722
2 changed files with 2 additions and 0 deletions

1
.gitignore vendored
View File

@ -4,3 +4,4 @@
Thumbs.db
vendor/
TestController.php
/import-mtpm.txt

View File

@ -64,6 +64,7 @@ class PackageController extends Controller
'/zipball/master.git' => '.git',
'/archive-tarball/master.git' => '.git',
'https://repo.or.cz/' => 'http://repo.or.cz/',
'/downloads' => '',
'.zip' => '',
];
$csv = array_map('str_getcsv', explode("\n", trim(file_get_contents($file))));