mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-28 03:46:00 +01:00
Refactoring
This commit is contained in:
@@ -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 + ")" : ""));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user