From 5a001d855e3a34460aea5e9aecfd22a698bb5df8 Mon Sep 17 00:00:00 2001 From: Luke Wilson Date: Wed, 2 Nov 2022 13:15:39 +0000 Subject: [PATCH] fix backwards slashes not getting recognised in path name --- frogasaurus.js | 2 +- source/main.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frogasaurus.js b/frogasaurus.js index e3baa98..470e1ce 100644 --- a/frogasaurus.js +++ b/frogasaurus.js @@ -277,7 +277,7 @@ const FrogasaurusFrogasaurus = {} } const directory = Deno.cwd() - const directoryParts = directory.split(/[\/]/) + const directoryParts = directory.split(/[\\/]/) const projectName = directoryParts[directoryParts.length-1] await Deno.permissions.request({name: "read", path: "."}) diff --git a/source/main.js b/source/main.js index 2e7b85a..b9d0189 100644 --- a/source/main.js +++ b/source/main.js @@ -18,7 +18,7 @@ export const main = async (...args) => { } const directory = Deno.cwd() - const directoryParts = directory.split(/[\/]/) + const directoryParts = directory.split(/[\\/]/) const projectName = directoryParts[directoryParts.length-1] await Deno.permissions.request({name: "read", path: "."})