Bisaya kurs korrekturen
This commit is contained in:
@@ -75,6 +75,7 @@
|
||||
|
||||
<script>
|
||||
import apiClient from '@/utils/axios.js';
|
||||
import { normalizeComparableWithNumberWords } from '@/utils/numberAnswerVariants.js';
|
||||
|
||||
export default {
|
||||
name: 'VocabLessonReviewView',
|
||||
@@ -119,9 +120,12 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
normalize(s) {
|
||||
const base = String(s || '').trim().toLowerCase();
|
||||
// Satzzeichen am Ende ignorieren (Punkt, Fragezeichen, Ausrufezeichen, Komma, Strichpunkt, Doppelpunkt)
|
||||
return base.replace(/[.,!?;:]+$/g, '').replace(/\s+/g, ' ');
|
||||
const baseNormalize = (value) => {
|
||||
const base = String(value || '').trim().toLowerCase();
|
||||
// Satzzeichen am Ende ignorieren (Punkt, Fragezeichen, Ausrufezeichen, Komma, Strichpunkt, Doppelpunkt)
|
||||
return base.replace(/[.,!?;:]+$/g, '').replace(/\s+/g, ' ');
|
||||
};
|
||||
return normalizeComparableWithNumberWords(s, baseNormalize);
|
||||
},
|
||||
getItemKey(item) {
|
||||
return `${String(item?.gloss || '').trim()}|${String(item?.target || '').trim()}`;
|
||||
|
||||
Reference in New Issue
Block a user