Skip to content

Commit

Permalink
fix : Enable to create a news with title contains a '.' character fol…
Browse files Browse the repository at this point in the history
…lowed by a special character - EXO-66277 (#2177)
  • Loading branch information
sofyenne committed Sep 22, 2023
1 parent a1e2a35 commit e91919f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -709,7 +709,7 @@ private static String replaceSpecialChars(String name, String specialChars) {
}
public static String replaceSpecialChars(String name, String specialChars, String nodeType) {
String extension = "";
if (nodeType.equals(NodetypeConstant.NT_FILE) && name.lastIndexOf(".") != -1) {
if (NodetypeConstant.NT_FILE.equals(nodeType) && name.lastIndexOf(".") != -1) {
extension = name.substring(name.lastIndexOf("."));
name = name.substring(0, name.lastIndexOf("."));
}
Expand Down

0 comments on commit e91919f

Please sign in to comment.