We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
BHRouter 调用canOpenURL 时,使用URL.pathComponents获得的pathComponents会存在/,直接导致校验pathComponentKey是否为Class时,提前退出。
canOpenURL
URL.pathComponents
pathComponents
/
pathComponentKey
判断代码,当pathComponentKey为/会报错。
Class mClass = NSClassFromString(pathComponentKey); if (!mClass) { flag = NO; *stop = NO; return; }
建议添加一行过滤代码
if ([pathComponentKey isEqualToString:@"/"]) { return; }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
BHRouter 调用
canOpenURL
时,使用URL.pathComponents
获得的pathComponents
会存在/
,直接导致校验pathComponentKey
是否为Class时,提前退出。判断代码,当
pathComponentKey
为/
会报错。建议添加一行过滤代码
The text was updated successfully, but these errors were encountered: