Skip to content

Commit

Permalink
fix backwards slashes not getting recognised in path name
Browse files Browse the repository at this point in the history
  • Loading branch information
TodePond committed Nov 2, 2022
1 parent 7ee0528 commit 5a001d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frogasaurus.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: "."})
Expand Down
2 changes: 1 addition & 1 deletion source/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: "."})
Expand Down

0 comments on commit 5a001d8

Please sign in to comment.