fix(question): 修复判断题答案验证逻辑
parent
0d46e34ca1
commit
5dd81cd81c
|
|
@ -219,8 +219,8 @@ public class QuestionE extends BaseE {
|
|||
}
|
||||
}
|
||||
//判断题答案只能是AB中的一个
|
||||
if (!entity.getAnswer().matches("[A-B]") ||entity.getAnswer().length()>1) {
|
||||
errList.add("单选题第" + (i + 2) + "行答案错误");
|
||||
if (!entity.getAnswer().matches("[F-T]") ||entity.getAnswer().length()>1) {
|
||||
errList.add("判断题第" + (i + 2) + "行答案错误");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue