Skip to content

Commit

Permalink
♻️ refactor: refactor codebase #2
Browse files Browse the repository at this point in the history
  • Loading branch information
pnguyen215 committed Sep 3, 2024
1 parent 9a9b583 commit ba3b6be
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@ public Object execute(ProceedingJoinPoint joinPoint) throws Throwable {
return proceed;
}
Map<String, Object> headers = Request4j.getHeaders(Clarify4j.getRequest());
logger.info("Clarify4j, header(s) requesting: {}", Json4j.toJson(headers));
logger.info("Clarify4j, HTTP requesting: [JSESSIONID.REQ.ID]: {}, URL: {}, header(s): {}",
Clarify4j.getCurrentSessionId(),
Request4j.getFullUrl(Clarify4j.getRequest()),
Json4j.toJson(headers));
return proceed;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public boolean isValid(String value, ConstraintValidatorContext context) {
if (String4j.isEmpty(value)) {
return false;
}
return Regex4j.isTime24HFully(value) && Regex4j.isTime12HFully(value);
return Regex4j.isTime24HFully(value) || Regex4j.isTime12HFully(value);
}
}

0 comments on commit ba3b6be

Please sign in to comment.