From 4bd6e073a78cf63c3798183820db974840d68946 Mon Sep 17 00:00:00 2001 From: Light Date: Thu, 24 Apr 2014 15:35:16 +0800 Subject: [PATCH] bug ifx --- HHRouter/HHRouter.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HHRouter/HHRouter.m b/HHRouter/HHRouter.m index 1e9ec7b..7b01121 100644 --- a/HHRouter/HHRouter.m +++ b/HHRouter/HHRouter.m @@ -118,7 +118,7 @@ - (NSArray *)pathComponentsFromRoute:(NSString *)route NSMutableArray *pathComponents = [NSMutableArray array]; for (NSString *pathComponent in route.pathComponents) { if ([pathComponent isEqualToString:@"/"]) continue; - if ([[pathComponent substringToIndex:1] isEqualToString:@"?"]) continue; + if ([[pathComponent substringToIndex:1] isEqualToString:@"?"]) break; [pathComponents addObject:pathComponent]; }