File tree Expand file tree Collapse file tree 2 files changed +3
-8
lines changed
curation-api/src/main/java/eu/clarin/cmdi/curation/api Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -89,13 +89,8 @@ public class CMDInstanceReport implements NamedReport {
8989 @ Override
9090 @ XmlTransient
9191 public String getName () {
92- if (fileReport .location != null && fileReport .location .contains (".xml" )) {
93- String normalisedPath = fileReport .location .replace ('\\' , '/' );
94- return FileNameEncoder .encode (normalisedPath );
95- }
96- else {
97- return fileReport .location ;
98- }
92+
93+ return FileNameEncoder .encode (fileReport .location );
9994 }
10095
10196 @ Override
Original file line number Diff line number Diff line change @@ -12,6 +12,6 @@ public class FileNameEncoder {
1212 * @return the string
1313 */
1414 public static String encode (String sourceString ){
15- return sourceString .replaceAll ("[/.:]" , "_" );
15+ return sourceString .replaceAll ("[\\ /.:]" , "_" );
1616 }
1717}
You can’t perform that action at this time.
0 commit comments