Skip to content

Commit

Permalink
test(lib): remove a trailing slash from redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
hasundue committed Mar 6, 2024
1 parent 4584045 commit 05d2356
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/testing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,9 @@ function parseDenoLandUrl(url: URL) {
return {
name: std ? "deno.land/std" : `deno.land/x/${name}`,
version,
path,
// Remove a trailing slash if it exists to imitate the behavior of typical
// Web servers.
path: path.replace(/\/$/, ""),
};
}

Expand Down

0 comments on commit 05d2356

Please sign in to comment.