Skip to content

Commit

Permalink
fix: generate valid URL pathname on windows hosts
Browse files Browse the repository at this point in the history
  • Loading branch information
wkillerud committed Aug 15, 2024
1 parent 73f1bdf commit 5c74ec5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}

Expand Down

0 comments on commit 5c74ec5

Please sign in to comment.