Skip to content

Commit

Permalink
Fix issue nst#14.
Browse files Browse the repository at this point in the history
  • Loading branch information
MosheBerman committed Jan 31, 2016
1 parent 1a33f39 commit 1cbb4dc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion iOS/OCRuntime/RTBAppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ - (GCDWebServerResponse *)responseForTreeWithDylibWithName:(NSString *)name {

[allClassesByImagesPath enumerateKeysAndObjectsUsingBlock:^(id key, id obj, BOOL *stop) {
BOOL isDylib = [[key pathExtension] isEqualToString:@"dylib"];
if([key containsString:name] || (isDylib && [[key lastPathComponent] isEqualToString:[name lastPathComponent]])) {
if([key rangeOfString:name].location != NSNotFound || (isDylib && [[key lastPathComponent] isEqualToString:[name lastPathComponent]])) {
classes = obj;
*stop = YES;
}
Expand Down
2 changes: 1 addition & 1 deletion iOS/OCRuntime/RTBListTVC.m
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ - (void)setupIndexedClassStubs {

for(RTBClass *cs in self.classStubs) {

if(_filterStringLowercase && [[cs.classObjectName lowercaseString] containsString:_filterStringLowercase] == NO) {
if(_filterStringLowercase && [[cs.classObjectName lowercaseString] rangeOfString:_filterStringLowercase].location == NSNotFound) {
continue;
}

Expand Down
2 changes: 1 addition & 1 deletion iOS/OCRuntime/RTBProtocolsTVC.m
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ - (void)setupIndexedClassStubs {

for(RTBProtocol *p in self.protocolStubs) {

if(_filterStringLowercase != nil && [[p.protocolName lowercaseString] containsString:_filterStringLowercase] == NO) {
if(_filterStringLowercase != nil && [[p.protocolName lowercaseString] rangeOfString:_filterStringLowercase].location == NSNotFound) {
continue;
}

Expand Down

0 comments on commit 1cbb4dc

Please sign in to comment.