Skip to content
This repository has been archived by the owner on May 27, 2020. It is now read-only.

Commit

Permalink
fix: fix invalid regexp for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
axetroy committed Feb 23, 2020
1 parent 7308978 commit a96e93a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/deno_cache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ export class Cache {
// $DENO_DIR/deps/https/deno.land -> https://deno.land
const origin = originDir
.replace(new RegExp("^" + str2regexpStr(DENO_DEPS_DIR + path.sep)), "")
.replace(new RegExp(path.sep, "gm"), "/")
.replace(new RegExp(str2regexpStr(path.sep), "gm"), "/")
.replace(/^(https?)\//, "$1://");

const manifest = Manifest.create(manifestFilepath);
Expand Down

0 comments on commit a96e93a

Please sign in to comment.