mirror of https://github.com/M66B/FairEmail.git
Match mailto: too
This commit is contained in:
parent
7377d1b52e
commit
ae41f7e830
|
@ -892,7 +892,7 @@ public class HtmlHelper {
|
||||||
// geo:<lat>,<lon>[,<alt>][;u=<uncertainty>]
|
// geo:<lat>,<lon>[,<alt>][;u=<uncertainty>]
|
||||||
// tel:<phonenumber>
|
// tel:<phonenumber>
|
||||||
final Pattern pattern = Pattern.compile(
|
final Pattern pattern = Pattern.compile(
|
||||||
PatternsCompat.AUTOLINK_EMAIL_ADDRESS.pattern() + "|" +
|
"(((?i:mailto):)?" + PatternsCompat.AUTOLINK_EMAIL_ADDRESS.pattern() + ")|" +
|
||||||
PatternsCompat.AUTOLINK_WEB_URL.pattern()
|
PatternsCompat.AUTOLINK_WEB_URL.pattern()
|
||||||
.replace("(?i:http|https|rtsp)://",
|
.replace("(?i:http|https|rtsp)://",
|
||||||
"(((?i:http|https|rtsp|ftp|telnet|ssh|sftp|fish)://)|((?i:xmpp):))") + "|" +
|
"(((?i:http|https|rtsp|ftp|telnet|ssh|sftp|fish)://)|((?i:xmpp):))") + "|" +
|
||||||
|
|
Loading…
Reference in New Issue