yarn2nix: fix "Incomplete URL substring sanitization"

'https://codeload.github.com' may be followed by an arbitrary host name.
This commit is contained in:
Sandro Jäckel 2024-09-17 15:23:13 +02:00
parent a9c9441997
commit 60550330ce
No known key found for this signature in database
GPG Key ID: 3AF5A43A3EECC2E5

View File

@ -46,7 +46,7 @@ async function fixPkgAddMissingSha1(pkg) {
const [url, sha1] = pkg.resolved.split("#", 2);
if (sha1 || url.startsWith("https://codeload.github.com")) {
if (sha1 || url.startsWith("https://codeload.github.com/")) {
return pkg;
}