0508 요청사항 수정 (자막 텍스트 찾는 방식 / 텍스트 공백처리)
This commit is contained in:
@@ -215,6 +215,11 @@ function getGpdpScore(gpdpData, scoringJson, index) {
|
||||
else if (type == "exists") {
|
||||
const result = xpath.select(ele, gpdpXmlDoc);
|
||||
const isMatch = result.some(v => {
|
||||
|
||||
// 문자열 앞뒤 공백 제거
|
||||
v.value = typeof v.value === 'string' ? v.value.trim() : v.value
|
||||
rightAnswer = typeof rightAnswer === 'string' ? rightAnswer.trim() : rightAnswer
|
||||
|
||||
if (v.value === rightAnswer) {
|
||||
totalScore += point;
|
||||
scoringResult[key] = point;
|
||||
|
||||
Reference in New Issue
Block a user