Commit e2994d8
committed
Fix dir variable by taking root, leaving out last / by using lastSlashIndex. Fix ext variable by using lastIndexOf, which works if filepath has more than one .
1 parent 59faf6f commit e2994d8
1 file changed
Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | | - | |
22 | | - | |
| 20 | + | |
| 21 | + | |
23 | 22 | | |
24 | 23 | | |
0 commit comments