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

Commit 8820747a authored by kaiyiz's avatar kaiyiz Committed by Gerrit - the friendly Code Review server
Browse files

Mms: Recognize URL with uppercase letters

The default regular expression patterns can
only match the domain with lowercase letters.

Make regular expression pattern to match web url with
case insensitive.

CRs-Fixed: 587537

Change-Id: I93da10b6c7278c096d12c42e040ce43d8a81602c
parent c2c1fe68
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -133,7 +133,8 @@ public class Patterns {
        + "|[1-9][0-9]|[0-9])))"
        + "(?:\\:\\d{1,5})?)" // plus option port number
        + "(\\/(?:(?:[" + GOOD_IRI_CHAR + "\\;\\/\\?\\:\\@\\&\\=\\#\\~"  // plus option query params
        + "\\-\\.\\+\\!\\*\\'\\(\\)\\_])|(?:\\,[" + GOOD_IRI_CHAR + "])|(?:\\%[a-fA-F0-9]{2}))*)?");
        + "\\-\\.\\+\\!\\*\\'\\(\\)\\_])|(?:\\,[" + GOOD_IRI_CHAR + "])|(?:\\%[a-fA-F0-9]{2}))*)?",
          Pattern.CASE_INSENSITIVE);

    public static final Pattern IP_ADDRESS
        = Pattern.compile(