Skip to content

Commit

Permalink
fix: tidy path
Browse files Browse the repository at this point in the history
  • Loading branch information
nopdan committed Mar 13, 2024
1 parent 35ac2eb commit 7b23e70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/components/Main.vue
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ function removeDict(index: number): void {
}
function tidyPath(path: string, dir: string) {
const index = path.lastIndexOf(dir);
const index = path.indexOf(dir);
let name = path;
if (index !== -1) {
name = path.substring(index + dir.length + 1);
Expand Down

0 comments on commit 7b23e70

Please sign in to comment.