Skip to content

Commit 902061e

Browse files
committed
Remove trailing slash from dir variable
1 parent 01624f5 commit 902061e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@ const ext = filePath.slice(lastDotIndex + 1);
2828
//const dir = filePath.slice(0 + lastSlashIndex);
2929
//const dir = filePath.slice(0 + (lastSlashIndex - 1));
3030
//const dir = filePath.slice(0 + (lastSlashIndex - 44));
31-
const dir = filePath.slice(0, lastSlashIndex + 1);
31+
const dir = filePath.slice(0, lastSlashIndex);
3232

3333
console.log(dir);

0 commit comments

Comments
 (0)