mirror of
https://github.com/tapframe/NuvioStreaming.git
synced 2026-05-17 15:32:01 +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_LIMIT = 100
|
||||||
private const val COMMENTS_CACHE_TTL_MS = 10 * 60_000L
|
private const val COMMENTS_CACHE_TTL_MS = 10 * 60_000L
|
||||||
private val INLINE_SPOILER_REGEX = Regex(
|
private val INLINE_SPOILER_REGEX = Regex(
|
||||||
"\\[spoiler\\].*?\\[/spoiler\\]",
|
"(?is)\\[spoiler\\].*?\\[/spoiler\\]"
|
||||||
setOf(RegexOption.IGNORE_CASE, RegexOption.DOT_MATCHES_ALL),
|
|
||||||
)
|
)
|
||||||
private val INLINE_SPOILER_TAG_REGEX = Regex("\\[/?spoiler\\]", RegexOption.IGNORE_CASE)
|
private val INLINE_SPOILER_TAG_REGEX = Regex("\\[/?spoiler\\]", RegexOption.IGNORE_CASE)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue