Update IcsImporter.kt

This commit is contained in:
SUPYROW
2023-03-16 09:57:41 +01:00
committed by GitHub
parent 0eb77c2e13
commit cc7b17da86

View File

@ -117,7 +117,7 @@ class IcsImporter(val activity: SimpleActivity) {
} else if (line.startsWith(DESCRIPTION) && !isNotificationDescription) { } else if (line.startsWith(DESCRIPTION) && !isNotificationDescription) {
val match = DESCRIPTION_REGEX.matchEntire(line) val match = DESCRIPTION_REGEX.matchEntire(line)
if (match != null) { if (match != null) {
curDescription = match.groups[1]?.value?.replace("\\n", "\n")?.replace("\\,", ",") ?: "" curDescription = match.groups[1]!!.value.replace("\\n", "\n").replace("\\,", ",") ?: ""
} }
if (curDescription.trim().isEmpty()) { if (curDescription.trim().isEmpty()) {
curDescription = "" curDescription = ""