Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate url that matches Patterns.WEB_URL #31

Closed
rafal-kobylko opened this issue Aug 28, 2019 · 1 comment
Closed

Generate url that matches Patterns.WEB_URL #31

rafal-kobylko opened this issue Aug 28, 2019 · 1 comment

Comments

@rafal-kobylko
Copy link

Hi!
Is it possible to generate url which matches Patterns.WEB_URL from Android?

 /**
     *  Regular expression pattern to match most part of RFC 3987
     *  Internationalized URLs, aka IRIs.
     */
    public static final Pattern WEB_URL = Pattern.compile("("
            + "("
            + "(?:" + PROTOCOL + "(?:" + USER_INFO + ")?" + ")?"
            + "(?:" + DOMAIN_NAME_STR + ")"
            + "(?:" + PORT_NUMBER + ")?"
            + ")"
            + "(" + PATH_AND_QUERY + ")?"
            + WORD_BOUNDARY
            + ")");

Forger.aUrl(scheme = "http") does not follow that standard.

@xgouchet
Copy link
Owner

Sure I'll take a look at it !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants