feat: Erweiterung der Bisaya-Kursinhalte um neue Lektionen und Aktualisierung der Titel in den didaktischen Feldern
All checks were successful
Deploy to production / deploy (push) Successful in 2m11s

This commit is contained in:
Torsten Schulz (local)
2026-05-19 11:04:52 +02:00
parent 3c92e1005a
commit ba70c706c8
3 changed files with 446 additions and 1 deletions

View File

@@ -730,6 +730,26 @@ export default class VocabService {
if (content) variants.add(content);
});
// Splitte auf Schrägstriche, Semikolons oder Pipes, damit z.B. "A / B" als "A" und "B" gilt
const slashParts = raw.split(/\s*[\/|;]\s*/);
if (slashParts.length > 1) {
slashParts.forEach((p) => {
const pp = String(p || '').trim();
if (pp) variants.add(pp);
});
}
// Auch Varianten trennen, die mit '/' in der ohneParentheses-Version vorkommen
if (withoutParentheses) {
const parts2 = withoutParentheses.split(/\s*[\/|;]\s*/);
if (parts2.length > 1) {
parts2.forEach((p) => {
const pp = String(p || '').trim();
if (pp) variants.add(pp);
});
}
}
return Array.from(variants);
}