We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b3c443 commit f1be296Copy full SHA for f1be296
src/fetchers/tarball-fetcher.js
@@ -180,7 +180,7 @@ export default class TarballFetcher extends BaseFetcher {
180
async _fetch(): Promise<FetchedOverride> {
181
const urlParse = url.parse(this.reference);
182
183
- if (urlParse.protocol === null && urlParse.pathname.match(/^\.\.?[\/\\]/)) {
+ if (urlParse.protocol === null && urlParse.pathname.match(/^(?=(?:\.{1,2}|[a-z]:)?[\\\/])/i)) {
184
return await this.fetchFromLocal(this.reference);
185
}
186
0 commit comments