Skip to content

Commit

Permalink
add pdf as extension of image
Browse files Browse the repository at this point in the history
  • Loading branch information
dimohamdy committed Feb 13, 2017
1 parent 97549ad commit 19044bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion LSUnusedResources/Model/StringUtils.m
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ + (NSString *)stringByRemoveResourceSuffix:(NSString *)str suffix:(NSString *)su

+ (BOOL)isImageTypeWithName:(NSString *)name {
static NSArray *arr = nil;
arr = @[@"png", @"jpg", @"jpeg", @"gif", @"bmp"];
arr = @[@"png", @"jpg", @"jpeg", @"gif", @"bmp", @"pdf"];
NSString *ext = [[name pathExtension] lowercaseString];
if ([arr containsObject:ext]) {
return YES;
Expand Down

0 comments on commit 19044bd

Please sign in to comment.