mirror of
https://github.com/tapframe/NuvioStreaming.git
synced 2026-05-16 23:12:12 +00:00
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.
This commit is contained in:
parent
1fa8456979
commit
5623cd99c2
1 changed files with 1 additions and 2 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue