URLNavigator
URLNavigator copied to clipboard
URL Matching rule
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