ExclusionRanges

internal object ExclusionRanges

Computes ranges to exclude from link preview detection (mentions and markdown links).

Functions

Link copied to clipboard
fun compute(text: String, mentions: List<MessageMention> = emptyList()): List<IntRange>

Computes a list of UTF-16 ranges that should be excluded from link preview detection.