Skip to content

Commit

Permalink
getFilenameFromPath updated, #283
Browse files Browse the repository at this point in the history
  • Loading branch information
Intelligent2013 committed Sep 25, 2024
1 parent bfaebb9 commit 51c56cf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/org/metanorma/fop/Util.java
Original file line number Diff line number Diff line change
Expand Up @@ -803,9 +803,10 @@ public static Node parseCSS(String cssString) {
}

public static String getFilenameFromPath(String filepath) {
filepath = filepath.replace("\\", "/");
File file = new File(filepath);
return file.getName();
/*filepath = filepath.replace("\\", "/");
/*
String[] filepathComponents = filepath.split("/");
return filepathComponents[filepathComponents.length - 1];*/
Expand Down

0 comments on commit 51c56cf

Please sign in to comment.