android-components / mozilla.components.support.utils / WebURLFinder

WebURLFinder

class WebURLFinder (source)

Regular expressions used in this class are taken from Android's Patterns.java. We brought them in to standardize URL matching across Android versions, instead of relying on Android version-dependent built-ins that can vary across Android versions. The original code can be found here: http://androidxref.com/8.0.0_r4/xref/frameworks/base/core/java/android/util/Patterns.java

Constructors

<init>

WebURLFinder(string: String?)

Functions

bestWebURL

fun bestWebURL(): String?

Return best Web URL.