1
0
mirror of https://github.com/moparisthebest/k-9 synced 2025-01-30 14:50:14 -05:00

Fix linkifyText() in the presence of bitcoin URIs

This commit is contained in:
cketti 2014-02-17 18:30:36 +01:00
parent f89544ea8b
commit fab31983ab

View File

@ -397,7 +397,7 @@ public class HtmlConverter {
Matcher m = Regex.WEB_URL_PATTERN.matcher(prepared);
while (m.find()) {
int start = m.start();
if (start == 0 || (start != 0 && text.charAt(start - 1) != '@')) {
if (start == 0 || (start != 0 && prepared.charAt(start - 1) != '@')) {
if (m.group().indexOf(':') > 0) { // With no URI-schema we may get "http:/" links with the second / missing
m.appendReplacement(outputBuffer, "<a href=\"$0\">$0</a>");
} else {