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 a96e93a commit d37c846
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 @@ -30,7 +30,7 @@ class Manifest implements IManifest {
const origin = path
.dirname(manifestFilepath)
.replace(new RegExp("^" + str2regexpStr(getDenoDepsDir() + path.sep)), "")
.replace(new RegExp(path.sep, "gm"), "/")
.replace(new RegExp(str2regexpStr(path.sep), "gm"), "/")
.replace(/^(https?)\//, "$1://");

return new Manifest(origin, manifestMap);
Expand Down

0 comments on commit d37c846

Please sign in to comment.