mirror of
https://github.com/nix-community/nix-on-droid-app.git
synced 2025-12-08 01:51:09 +01:00
Fixed: Remove all trailing slashes when normalizing path
This commit is contained in:
parent
f7ebcae7b3
commit
93d738ae63
1 changed files with 1 additions and 1 deletions
|
|
@ -105,7 +105,7 @@ public class FileUtils {
|
|||
path = path.replaceAll("\\./", "");
|
||||
|
||||
if (path.endsWith("/")) {
|
||||
path = path.substring(0, path.length() - 1);
|
||||
path = path.replaceAll("/+$", "");
|
||||
}
|
||||
|
||||
return path;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue