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

Name Summary
<init> WebURLFinder(string: String?)

Functions

Name Summary
bestWebURL fun bestWebURL(): String?
Return best Web URL.

Companion Object Functions

Name Summary
isWebURL fun isWebURL(string: String): Boolean
Check if string is a Web URL.