Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fab31983 authored by cketti's avatar cketti
Browse files

Fix linkifyText() in the presence of bitcoin URIs

parent f89544ea
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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 {