Skip to content

Commit

Permalink
StartWith instead of contains
Browse files Browse the repository at this point in the history
  • Loading branch information
StaehliJ committed Dec 18, 2024
1 parent ec7bcfb commit be93497
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ enum class IlHost(val baseHostUrl: String) {
* @return The matching [IlHost] or `null` if none was found.
*/
fun parse(url: String): IlHost? {
return entries.find { url.contains(it.baseHostUrl) }
return entries.find { url.startsWith(it.baseHostUrl) }
}
}
}

0 comments on commit be93497

Please sign in to comment.