fixed style

This commit is contained in:
Luca Frosini 2024-04-09 11:07:41 +02:00
parent 7f4139d14a
commit 8ac76e6427
1 changed files with 2 additions and 1 deletions

View File

@ -45,8 +45,9 @@ public class CKANGroup extends CKAN {
}
public static String fromGroupTitleToName(String groupTitle) {
if(groupTitle == null)
if(groupTitle == null) {
return null;
}
String regexGroupTitleTransform = "[^A-Za-z0-9-]";
String modified = groupTitle.trim().replaceAll(regexGroupTitleTransform, "-").replaceAll("-+", "-").toLowerCase();