From 5c74ec52305b125cda21c3543eed543e5e518822 Mon Sep 17 00:00:00 2001 From: William Killerud Date: Thu, 15 Aug 2024 09:26:03 +0200 Subject: [PATCH] fix: generate valid URL pathname on windows hosts --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 76934bd..fa191cf 100644 --- a/src/index.js +++ b/src/index.js @@ -186,7 +186,7 @@ export default class Eik { */ get pathname() { if (this.#config.type && this.#config.name && this.#config.version) - return join("/", this.type, this.name, this.version); + return join("/", this.type, this.name, this.version).replace(/\\/g, "/"); throw new Error("Eik config was not loaded before calling .pathname"); }