Skip to content

Commit

Permalink
Merge pull request #35 from potenday-project/develop
Browse files Browse the repository at this point in the history
기업명 가져오는 부분 --- 구분 제거
  • Loading branch information
HwangHoYoon authored Dec 16, 2023
2 parents 17cd710 + 34259d8 commit cd0c676
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,7 @@ public RecruitInsertRes insertRecruit(RecruitInsertReq recruitInsertReq) throws
private String getRecruitTitle(String summary) {
String title = null;
// 현재 사용하지 않는 --- 제거 및 줄바꿈 분리
if (summary.indexOf("---") != -1) {
String[] splitSummaryList = summary.substring(0, summary.lastIndexOf("---")).split("\n");
String[] splitSummaryList = summary.split("\n");

// 기업명 고정
String targetWord = "기업 :";
Expand All @@ -193,7 +192,6 @@ private String getRecruitTitle(String summary) {
}
}
}
}

if (org.apache.commons.lang3.StringUtils.isBlank(title)) {
throw new CommonException(ExceptionCode.RECRUIT_TITLE_NULL.getMessage(), ExceptionCode.RECRUIT_TITLE_NULL.getCode());
Expand Down

0 comments on commit cd0c676

Please sign in to comment.