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
All checks were successful
Deploy to production / deploy (push) Successful in 2m11s
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user