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

Is it possible to register route without case-sensitive? #162

Closed
hendrahalim opened this issue Jan 23, 2020 · 1 comment
Closed

Is it possible to register route without case-sensitive? #162

hendrahalim opened this issue Jan 23, 2020 · 1 comment

Comments

@hendrahalim
Copy link

I want to register a route without case-sensitive

router.register("home") { (deeplink) in // do some code }

from the code, i expect to accept
scheme://home
scheme://HOME

is there any way to handle this?

@chrismaddern
Copy link
Contributor

Currently case insensitive matches aren't supported - the match is run without the caseInsensitive flag

Support could be added somehow here: https://github.com/button/DeepLinkKit/blob/master/DeepLinkKit/Regex/DPLRegularExpression.m#L60

Alternatively, you could match both home and HOME in the input.

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

No branches or pull requests

2 participants