mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-06-05 21:59:17 +02:00
Update IcsImporter.kt
This commit is contained in:
@ -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 = ""
|
||||||
|
Reference in New Issue
Block a user