|
@@ -328,13 +328,12 @@ export default {
|
|
|
},
|
|
|
answerWordCount() {
|
|
|
if (this.studentAnswer && this.$refs.answerDiv) {
|
|
|
- return this.$refs.answerDiv.innerText.length;
|
|
|
+ return this.$refs.answerDiv.innerText.replace(/\s+/g, "").length;
|
|
|
} else {
|
|
|
const ele = document.createElement("div");
|
|
|
ele.innerHTML = this.studentAnswer;
|
|
|
- ele.innerText.length;
|
|
|
|
|
|
- return ele.innerText.length;
|
|
|
+ return ele.innerText.replace(/\s+/g, "").length;
|
|
|
}
|
|
|
},
|
|
|
isAudioAnswerType() {
|