Match mailto: too

This commit is contained in:
M66B 2020-06-21 17:21:17 +02:00
parent 7377d1b52e
commit ae41f7e830
1 changed files with 1 additions and 1 deletions

View File

@ -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):))") + "|" +