Skip to content

Commit

Permalink
修复用url pathComponents 解释的时候出现的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
xcxcxc committed Sep 5, 2014
1 parent 060bd61 commit 118cf7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion HHRouter/HHRouter.m
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ - (NSString*)stringFromFilterAppUrlScheme:(NSString*)string
// filter out the app URL compontents.
for (NSString* appUrlScheme in [self appUrlSchemes]) {
if ([string hasPrefix:[NSString stringWithFormat:@"%@:", appUrlScheme]]) {
return [string substringFromIndex:appUrlScheme.length + 1];
return [string substringFromIndex:appUrlScheme.length + 2];
}
}

Expand Down

0 comments on commit 118cf7d

Please sign in to comment.