UrlDetector

internal object UrlDetector

Extracts complete URL candidates with original UTF-16 spans. Fetching enforces network policy separately.

Types

Link copied to clipboard
data class UrlMatch(val url: String, val start: Int, val end: Int)

Functions

Link copied to clipboard
fun detect(text: String, excluded: List<IntRange> = emptyList()): List<UrlDetector.UrlMatch>