From 5623cd99c2a2bace43bcd0b8ec85b4eddcf539bf Mon Sep 17 00:00:00 2001 From: Guilherme Lima Pereira Date: Sat, 9 May 2026 17:37:32 -0300 Subject: [PATCH] fix(trakt): replace invalid RegexOption.DOT_MATCHES_ALL with inline flag RegexOption.DOT_MATCHES_ALL is not available in Kotlin Common (KMP). Replaced with inline (?s) flag to fix commonMain compilation. --- .../com/nuvio/app/features/trakt/TraktCommentsRepository.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/composeApp/src/commonMain/kotlin/com/nuvio/app/features/trakt/TraktCommentsRepository.kt b/composeApp/src/commonMain/kotlin/com/nuvio/app/features/trakt/TraktCommentsRepository.kt index 378b8ef3..a2bd8a03 100644 --- a/composeApp/src/commonMain/kotlin/com/nuvio/app/features/trakt/TraktCommentsRepository.kt +++ b/composeApp/src/commonMain/kotlin/com/nuvio/app/features/trakt/TraktCommentsRepository.kt @@ -15,8 +15,7 @@ private const val COMMENTS_SORT = "likes" private const val COMMENTS_LIMIT = 100 private const val COMMENTS_CACHE_TTL_MS = 10 * 60_000L private val INLINE_SPOILER_REGEX = Regex( - "\\[spoiler\\].*?\\[/spoiler\\]", - setOf(RegexOption.IGNORE_CASE, RegexOption.DOT_MATCHES_ALL), + "(?is)\\[spoiler\\].*?\\[/spoiler\\]" ) private val INLINE_SPOILER_TAG_REGEX = Regex("\\[/?spoiler\\]", RegexOption.IGNORE_CASE)