Skip to content

Commit e063616

Browse files
Potential fix for code scanning alert no. 4: Incomplete string escaping or encoding
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent e98b73c commit e063616

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/layer3-dynamic/resource-fetcher.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ function defaultDeps(): ResourceFetcherDeps {
4848
function endpointFor(request: ResourceRequest): string {
4949
if (request.kind === "npm") {
5050
const pkg = request.locator.startsWith("@")
51-
? request.locator.replace("/", "%2f")
51+
? request.locator.replace(/\//g, "%2f")
5252
: request.locator;
5353
return `https://registry.npmjs.org/${pkg}`;
5454
}

0 commit comments

Comments
 (0)