Fixed: Remove all trailing slashes when normalizing path

This commit is contained in:
agnostic-apollo 2021-10-21 23:56:49 +05:00
parent f7ebcae7b3
commit 93d738ae63
1 changed files with 1 additions and 1 deletions

View File

@ -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;