1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-23 16:25:30 +00:00

Autolink: workaround for links ending with $

This commit is contained in:
M66B 2023-05-10 10:02:19 +02:00
parent 0c567ad484
commit d241aa2ded

View file

@ -1563,6 +1563,10 @@ public class HtmlHelper {
end--; end--;
group = group.substring(0, group.length() - 1); group = group.substring(0, group.length() - 1);
} }
if (end < text.length() && text.charAt(end) == '$') {
end++;
group += '$';
}
boolean email = group.contains("@") && !group.contains(":"); boolean email = group.contains("@") && !group.contains(":");
Log.i("Web url=" + group + " " + start + "..." + end + "/" + text.length() + Log.i("Web url=" + group + " " + start + "..." + end + "/" + text.length() +