Skip to content

Commit 90091fd

Browse files
committed
changes made
1 parent a7ce6b5 commit 90091fd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Sprint-1/1-key-exercises/3-paths.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const base = filePath.slice(lastSlashIndex + 1);
1717
// Create a variable to store the ext part of the variable
1818

1919
const firstSlashIndex = filePath.indexOf("/");
20-
const dir = filePath.slice(firstSlashIndex + 1, lastSlashIndex);
20+
const dir = filePath.slice(firstSlashIndex + 1, lastSlashIndex +1);
2121

2222
const lastdotindex = filePath.lastIndexOf(".");
2323
const ext = filePath.slice(lastdotindex);

0 commit comments

Comments
 (0)