fix(install): dirs in stores can't contain colons

Close #479
This commit is contained in:
Zoltan Kochan
2016-11-16 21:52:46 -08:00
committed by Zoltan Kochan
parent bef2823dfc
commit 41cbf055d6

View File

@@ -9,7 +9,7 @@ export default async function resolveGithub (parsedSpec: PackageSpec, opts: Reso
const repo = parts[0]
const ref = parts[1] || 'master'
return {
id: parsedSpec.spec.replace(/\//g, delimiter),
id: parsedSpec.spec.replace(/[\/:]/g, delimiter),
fetch: (target: string) => {
return clone(repo, ref, target)
}