This commit is contained in:
unknown
2021-09-11 15:53:37 +02:00
parent b0565ddcd9
commit a801503838
4 changed files with 4 additions and 4 deletions

View File

@@ -7,7 +7,7 @@ class SubjectIcon {
static IconData? lookup({Subject? subject, String? subjectName}) {
assert(!(subject == null && subjectName == null));
String name = subject?.name.toLowerCase().specialChars() ?? subjectName ?? "";
String name = subject?.name.toLowerCase().specialChars().trim() ?? subjectName ?? "";
String category = subject?.category.description.toLowerCase().specialChars() ?? "";
// todo: check for categories