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

Commit 5716ba3d authored by Danny Baumann's avatar Danny Baumann Committed by Gerrit Code Review
Browse files

Accept underscore and tilde in web URLs.

Change-Id: I19bf6854027bb73f9539bb2366ff5615b1f7c71b
parent f2a9674b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -136,7 +136,7 @@ public class Patterns {
     * RFC 1035 Section 2.3.4 limits the labels to a maximum 63 octets.
     */
    private static final String IRI =
        "[" + GOOD_IRI_HOST_CHAR + "]([" + GOOD_IRI_HOST_CHAR + "\\-]{0,61}["
        "[" + GOOD_IRI_HOST_CHAR + "]([" + GOOD_IRI_HOST_CHAR + "\\-_~]{0,61}["
        + GOOD_IRI_HOST_CHAR + "]){0,1}";

    private static final String GOOD_GTLD_CHAR =