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

Literal asterisk in url #277

Open
subhero24 opened this issue May 10, 2022 · 6 comments
Open

Literal asterisk in url #277

subhero24 opened this issue May 10, 2022 · 6 comments

Comments

@subhero24
Copy link
Contributor

subhero24 commented May 10, 2022

Is there a way to escape the asterisk * in the url to match the character literally?
Falling back to a regular expression like "/some/url/:asterisk(^\\*)" works, but I was wondering if this is the preferred way to do it?

@ivan-tymoshenko
Copy link
Collaborator

Hi, there is no other way to do it, right now.

@subhero24
Copy link
Contributor Author

Would you like me to create a PR for this? If so, let me know how the asterisk should be escaped.

@ivan-tymoshenko
Copy link
Collaborator

To escape the colon in the path we use double colon "::". We could use a double asterisk to avoid a wildcard node, or we can continue using the leading colon as an escape symbol.

/test/:*hello
/test/**hello

I can't say right now that I like one of the options. You can reopen this issue and we will think about it.

@subhero24 subhero24 reopened this May 13, 2022
@Ekott2006
Copy link

Is this issue still available??

@ivan-tymoshenko
Copy link
Collaborator

Is this issue still available??

I don't have a good solution for this. I don't think that bringing another exception rule into router logic is worth it.

@Ekott2006
Copy link

Okay so how will this issue be resolved @ivan-tymoshenko

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

No branches or pull requests

3 participants