Skip to content

Commit

Permalink
fixed sonar cloud
Browse files Browse the repository at this point in the history
  • Loading branch information
Mrart committed Aug 5, 2024
1 parent 44a6624 commit 1ae53d7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public Boolean existsByCatalogName(String catalogName) {

/** validate catalog name */
private boolean validateCatalogName(String catalogName) {
String regex = "^[a-z0-9]+([\\-\\.][a-z0-9]+)*$";
String regex = "^(?:[a-z0-9]+[-\\.]?)*(?:[a-z0-9]+)$";
return catalogName.matches(regex);
}
}

0 comments on commit 1ae53d7

Please sign in to comment.