Update IcsImporter.kt

This commit is contained in:
SUPYROW 2023-03-16 09:57:41 +01:00 committed by GitHub
parent 0eb77c2e13
commit cc7b17da86
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -117,7 +117,7 @@ class IcsImporter(val activity: SimpleActivity) {
} else if (line.startsWith(DESCRIPTION) && !isNotificationDescription) {
val match = DESCRIPTION_REGEX.matchEntire(line)
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()) {
curDescription = ""