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

Commit b633b2fb authored by Aashna Jena's avatar Aashna Jena
Browse files

Update IANA_TOP_LEVEL_DOMAINS in accordance with http://data.iana.org/TLD/tlds-alpha-by-domain.txt

Updating regex for matching IANA top level domains for web URLs using script https://source.corp.google.com/h/googleplex-android/platform/superproject/main/+/main:frameworks/ex/common/tools/make-iana-tld-pattern.py

Bug: 299591129

Change-Id: I7662cffaba4a762d83c5317add551a5c835f489f
parent fe3deb07
Loading
Loading
Loading
Loading
+158 −112

File changed.

Preview size limit exceeded, changes collapsed.

+2 −2
Original line number Diff line number Diff line
@@ -399,7 +399,7 @@ public class PatternsTest extends TestCase {
    @SmallTest
    public void testAutoLinkWebUrl_doesNotMatchUrlsWithoutProtocolAndWithUnknownTld()
            throws Exception {
        String url = "thank.you";
        String url = "thank.unknowntld";
        assertFalse("Should not match URL that does not start with a protocol and " +
                "does not contain a known TLD",
                Patterns.AUTOLINK_WEB_URL.matcher(url).matches());
@@ -422,7 +422,7 @@ public class PatternsTest extends TestCase {
    @SmallTest
    public void testAutoLinkWebUrl_doesNotMatchUrlsWithEmojiWithoutProtocolAndWithoutKnownTld()
            throws Exception {
        String url = "Thank\u263A.you";
        String url = "Thank\u263A.unknowntld";
        assertFalse("Should not match URLs containing emoji and with unknown TLD",
                Patterns.AUTOLINK_WEB_URL.matcher(url).matches());
    }