Skip to content

Commit

Permalink
fix: '\1' -> '' and '\/\/' -> \/+
Browse files Browse the repository at this point in the history
  • Loading branch information
i-pip authored and thebengeu committed Jan 18, 2022
1 parent 0174fff commit 904d1b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/StorageFileApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,6 @@ export class StorageFileApi {
}

_removeEmptyFolders(path: string) {
return path.replace(/^\/|\/$/g, '\1').replace(/\/\//g, '/')
return path.replace(/^\/|\/$/g, '').replace(/\/+/g, '/')
}
}

0 comments on commit 904d1b9

Please sign in to comment.