|
|
|
@ -1355,11 +1355,14 @@ public class HtmlHelper {
|
|
|
|
|
// tel:<phonenumber>
|
|
|
|
|
final Pattern GPA_PATTERN = Pattern.compile("GPA\\.\\d{4}-\\d{4}-\\d{4}-\\d{5}");
|
|
|
|
|
final Pattern pattern = Pattern.compile(
|
|
|
|
|
"(((?i:mailto):)?" + PatternsCompat.AUTOLINK_EMAIL_ADDRESS.pattern() + ")|" +
|
|
|
|
|
"(((?i:mailto):)?" + PatternsCompat.AUTOLINK_EMAIL_ADDRESS.pattern() + ")" +
|
|
|
|
|
"|" +
|
|
|
|
|
PatternsCompat.AUTOLINK_WEB_URL.pattern()
|
|
|
|
|
.replace("(?i:http|https|rtsp)://",
|
|
|
|
|
"(((?i:http|https)://)|((?i:xmpp):))") + "|" +
|
|
|
|
|
"(?i:geo:\\d+,\\d+(,\\d+)?(;u=\\d+)?)|" +
|
|
|
|
|
"(((?i:http|https)://)|((?i:xmpp):))") +
|
|
|
|
|
"|" +
|
|
|
|
|
"(?i:geo:\\d+,\\d+(,\\d+)?(;u=\\d+)?)" +
|
|
|
|
|
"|" +
|
|
|
|
|
"(?i:tel:" + Patterns.PHONE.pattern() + ")" +
|
|
|
|
|
(BuildConfig.DEBUG ? "|(" + GPA_PATTERN + ")" : ""));
|
|
|
|
|
|
|
|
|
|