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

Commit 54dcd832 authored by Fredrik Roubert's avatar Fredrik Roubert Committed by Automerger Merge Worker
Browse files

Merge "Add "ftp" to the list of URL schemes that get linkified." am:...

Merge "Add "ftp" to the list of URL schemes that get linkified." am: cc7a0e71 am: d13a70de am: f030962c

Change-Id: I820283667a870c0d4a1c1b5e09a7159dc8a302e5
parents c5b095ba f030962c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -304,7 +304,7 @@ public class Linkify {

        if ((mask & WEB_URLS) != 0) {
            gatherLinks(links, text, Patterns.AUTOLINK_WEB_URL,
                new String[] { "http://", "https://", "rtsp://" },
                new String[] { "http://", "https://", "rtsp://", "ftp://" },
                sUrlMatchFilter, null);
        }

+1 −1
Original line number Diff line number Diff line
@@ -301,7 +301,7 @@ public class Patterns {
    private static final String DOMAIN_NAME_STR = "(" + HOST_NAME + "|" + IP_ADDRESS_STRING + ")";
    public static final Pattern DOMAIN_NAME = Pattern.compile(DOMAIN_NAME_STR);

    private static final String PROTOCOL = "(?i:http|https|rtsp)://";
    private static final String PROTOCOL = "(?i:http|https|rtsp|ftp)://";

    /* A word boundary or end of input.  This is to stop foo.sure from matching as foo.su */
    private static final String WORD_BOUNDARY = "(?:\\b|$|^)";