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

URL Matching rule #111

Open
lixiang1994 opened this issue Oct 17, 2018 · 0 comments
Open

URL Matching rule #111

lixiang1994 opened this issue Oct 17, 2018 · 0 comments

Comments

@lixiang1994
Copy link

navigator.handle("cddh://open") { ... print(1) } 
navigator.handle("cddh://<path:_>") { ... print(2) }
navigator.open("cddh://open?type=xxxx")

Result:
Sometimes it's 1, sometimes it's 2.

Or

navigator.handle("cddh://open?type=pvp") { ... print(1) } 
navigator.handle("cddh://open?type=pvp_detail") { ... print(2) }
navigator.open("cddh://open?type=pvp_detail")

Result: 1

Hope can improve the matching rules,
Can be executed first when it matches exactly.

Thanks!

@devxoul

Paldom pushed a commit to Paldom/URLNavigator that referenced this issue Apr 10, 2019
Paldom pushed a commit to Paldom/URLNavigator that referenced this issue Apr 25, 2019
Paldom pushed a commit to Paldom/URLNavigator that referenced this issue Apr 26, 2019
devxoul added a commit that referenced this issue Sep 7, 2019
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

1 participant