fix bad package URLs as they are loaded
This commit is contained in:
parent
6fb4610b5f
commit
cc64eb7fea
|
@ -814,7 +814,7 @@ public class NpmPackage {
|
||||||
|
|
||||||
public String getWebLocation() {
|
public String getWebLocation() {
|
||||||
if (npm.has("url")) {
|
if (npm.has("url")) {
|
||||||
return npm.get("url").getAsString();
|
return PackageHacker.fixPackageUrl(npm.get("url").getAsString());
|
||||||
} else {
|
} else {
|
||||||
return JSONUtil.str(npm, "canonical");
|
return JSONUtil.str(npm, "canonical");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue