Skip to content

Commit

Permalink
Merge pull request #32 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 863c1cb + 0b175c2 commit 35ebbab
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -176,13 +176,19 @@ private String getRecruitTitle(String summary) {

// 기업명 고정
String targetWord = "기업 :";
String targetWord2 = "기업명 :";
for (String splitSummary : splitSummaryList) {
if (splitSummary.indexOf(".") != -1) {
String num = splitSummary.substring(0, splitSummary.indexOf("."));
if (org.apache.commons.lang3.StringUtils.isNumeric(num)) {
int index = splitSummary.indexOf(targetWord);
if (index != -1) {
title = splitSummary.substring(index + targetWord.length()).trim();
} else {
index = splitSummary.indexOf(targetWord2);
if (index != -1) {
title = splitSummary.substring(index + targetWord2.length()).trim();
}
}
}
}
Expand Down

0 comments on commit 35ebbab

Please sign in to comment.