fix bad package URLs as they are loaded

This commit is contained in:
Grahame Grieve 2020-09-22 22:02:01 +10:00
parent 6fb4610b5f
commit cc64eb7fea
1 changed files with 1 additions and 1 deletions

View File

@ -814,7 +814,7 @@ public class NpmPackage {
public String getWebLocation() {
if (npm.has("url")) {
return npm.get("url").getAsString();
return PackageHacker.fixPackageUrl(npm.get("url").getAsString());
} else {
return JSONUtil.str(npm, "canonical");
}