Bisaya kurs korrekturen
This commit is contained in:
@@ -1087,6 +1087,7 @@
|
||||
<script>
|
||||
import { mapGetters } from 'vuex';
|
||||
import apiClient from '@/utils/axios.js';
|
||||
import { normalizeComparableWithNumberWords } from '@/utils/numberAnswerVariants.js';
|
||||
|
||||
const debugLog = () => {};
|
||||
const LESSON_STATE_VERSION = 1;
|
||||
@@ -4271,14 +4272,17 @@ export default {
|
||||
}
|
||||
},
|
||||
normalizeComparableText(value) {
|
||||
const normalized = String(value || '')
|
||||
.trim()
|
||||
.toLowerCase()
|
||||
.normalize('NFKC')
|
||||
.replace(/[\p{P}\p{S}]+/gu, ' ')
|
||||
.replace(/\s+/g, ' ')
|
||||
.trim();
|
||||
return normalized.replace(/\s+/g, '');
|
||||
const baseNormalize = (source) => {
|
||||
const normalized = String(source || '')
|
||||
.trim()
|
||||
.toLowerCase()
|
||||
.normalize('NFKC')
|
||||
.replace(/[\p{P}\p{S}]+/gu, ' ')
|
||||
.replace(/\s+/g, ' ')
|
||||
.trim();
|
||||
return normalized.replace(/\s+/g, '');
|
||||
};
|
||||
return normalizeComparableWithNumberWords(value, baseNormalize);
|
||||
},
|
||||
stripTrailingParentheticalNotes(value) {
|
||||
let text = String(value || '').trim();
|
||||
|
||||
Reference in New Issue
Block a user