0508 요청사항 수정 (자막 텍스트 찾는 방식 / 텍스트 공백처리)

This commit is contained in:
2025-05-12 16:42:09 +09:00
parent 56e38caa0f
commit e95ec9c050
8 changed files with 23 additions and 32 deletions

View File

@@ -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;