Skip to content

Commit

Permalink
Merge pull request #9 from xcxcxc/master
Browse files Browse the repository at this point in the history
修复用url pathComponents 解释的时候出现的bug
  • Loading branch information
smhjsw committed Apr 29, 2015
2 parents dc187c7 + 118cf7d commit dd982d2
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 @@ -181,7 +181,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 dd982d2

Please sign in to comment.