CourseWork v2

This commit is contained in:
Максим Яковлев 2024-12-21 20:15:27 +04:00
parent abbb4d65ef
commit 0c8cdd4370

View File

@ -84,7 +84,9 @@ class BossesRepository extends ApiInterface {
String text = document.body?.text ?? '';
text = text.split("==Галерея==")[0];
text = text.split("== Галерея ==")[0];
text = text.split("== Видео ==")[0];
text = text.replaceAll(RegExp(r'\{[^\}]*\}'), '');
text = text.replaceAll(RegExp(r'[{}]'), '');
descs.add((boss['title'], text.trim()));
}