Skip to content
Permalink
Browse files

refactor(installer): use single regexp to make repo path safe

  • Loading branch information
MarshallOfSound committed Dec 31, 2016
1 parent 2445495 commit 1255803b622247a197419029fa42aa452a093b80
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/electron-forge-install.js
@@ -111,7 +111,7 @@ const main = async () => {
}

const tmpdir = path.resolve(os.tmpdir(), 'forge-install');
const pathSafeRepo = repo.replace(/\//g, '-').replace(/\\/g, '-');
const pathSafeRepo = repo.replace(/[/\\]/g, '-');
const filename = `${pathSafeRepo}-${latestRelease.tag_name}-${targetAsset.name}`;

const fullFilePath = path.resolve(tmpdir, filename);

0 comments on commit 1255803

Please sign in to comment.
You can’t perform that action at this time.