diff --git a/core/network/src/commonMain/kotlin/dev/sasikanth/rss/reader/core/network/parser/FeedParser.kt b/core/network/src/commonMain/kotlin/dev/sasikanth/rss/reader/core/network/parser/FeedParser.kt index d78d54084..189812f0f 100644 --- a/core/network/src/commonMain/kotlin/dev/sasikanth/rss/reader/core/network/parser/FeedParser.kt +++ b/core/network/src/commonMain/kotlin/dev/sasikanth/rss/reader/core/network/parser/FeedParser.kt @@ -136,7 +136,7 @@ class FeedParser(private val dispatchersProvider: DispatchersProvider) { } private fun isAbsoluteUrl(url: String): Boolean { - val pattern = """^(?:\w+:)?//""".toRegex() + val pattern = """^[a-zA-Z][a-zA-Z0-9\+\-\.]*:""".toRegex() return pattern.containsMatchIn(url) } }