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

Commit fa4039e4 authored by Patrick Scott's avatar Patrick Scott
Browse files

Do not include the fragement identifier in the path.

Bug: 2435741
parent e5dbbde5
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -58,7 +58,8 @@ public class WebAddress {
            /* authority */ "(?:([-A-Za-z0-9$_.+!*'(),;?&=]+(?:\\:[-A-Za-z0-9$_.+!*'(),;?&=]+)?)@)?" +
            /* host      */ "([-" + GOOD_IRI_CHAR + "%_]+(?:\\.[-" + GOOD_IRI_CHAR + "%_]+)*|\\[[0-9a-fA-F:\\.]+\\])?" +
            /* port      */ "(?:\\:([0-9]+))?" +
            /* path      */ "(\\/?.*)?");
            /* path      */ "(\\/?[^#]*)?" +
            /* anchor    */ ".*");

    /** parses given uriString. */
    public WebAddress(String address) throws ParseException {