From fd04922c40a9893e7e98e06d3be650674b5c6508 Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Mon, 31 Jan 2022 19:04:17 +0100 Subject: [PATCH] fix: escape unsupported chars from tmpdir --- src/loader.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/loader.ts b/src/loader.ts index 8ede614..c10c623 100644 --- a/src/loader.ts +++ b/src/loader.ts @@ -99,7 +99,7 @@ async function extendConfig (config, configFile: string, cwd: string) { delete config.extends for (let extendSource of extendSources) { if (TIGED_PREFIXES.some(prefix => extendSource.startsWith(prefix))) { - const tmpdir = resolve(os.tmpdir(), 'c12/git', extendSource.replace(/[#]/g, '_')) + const tmpdir = resolve(os.tmpdir(), 'c12/git', extendSource.replace(/[#:@]/g, '_')) await fsp.rmdir(tmpdir, { recursive: true }) const t = tiged(extendSource, { cache: true }) await t.clone(tmpdir)