Skip to content

Commit 229e83f

Browse files
elrrrrrrrmerceyz
andauthored
Update sources/corepackUtils.ts
Co-authored-by: Kristoffer K. <[email protected]>
1 parent e45e87a commit 229e83f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sources/corepackUtils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ export async function installVersion(installTarget: string, locator: Locator, {s
117117
};
118118
}
119119

120-
const defaultNpmRegistryURL = spec.url.replace(/\{\}/g, version);
120+
const defaultNpmRegistryURL = spec.url.replaceAll(`{}`, version);
121121
const url = process.env.COREPACK_NPM_REGISTRY ?
122122
defaultNpmRegistryURL.replace(
123123
npmRegistryUtils.DEFAULT_NPM_REGISTRY_URL,

0 commit comments

Comments
 (0)