Skip to content

Commit

Permalink
add lowercasing the job text
Browse files Browse the repository at this point in the history
  • Loading branch information
thanhleviet committed Nov 22, 2024
1 parent 8cacdfb commit 9748541
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -369,8 +369,8 @@ public String increaseRetireDate(AbstractJob job, int days) {

public String createId(String username, String pipelineName) {
SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMdd-HHmmss-SSS");
username = username.replaceAll("\\s+", "-");
pipelineName = pipelineName.replaceAll("\\s+", "-");
username = username.toLowerCase().replaceAll("\\s+", "-");
pipelineName = pipelineName.toLowerCase().replaceAll("\\s+", "-");
return username + "-" + pipelineName + "-" + sdf.format(new Date());
}

Expand Down

0 comments on commit 9748541

Please sign in to comment.