URLNavigator icon indicating copy to clipboard operation
URLNavigator copied to clipboard

URL Matching rule

Open lixiang1994 opened this issue 7 years ago • 0 comments

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

lixiang1994 avatar Oct 17 '18 06:10 lixiang1994