Change matching order

This commit is contained in:
relikd
2020-12-18 10:57:49 +01:00
parent f7eb63bed9
commit e0dec3adf9
2 changed files with 5 additions and 5 deletions

View File

@@ -64,11 +64,11 @@
} }
} }
} else if ([type isEqualToString:@"c"]) { } else if ([type isEqualToString:@"c"]) {
NSData *m_json = [@"\"channelId\":\"" dataUsingEncoding:NSUTF8StringEncoding]; NSData *m_head = [@"<meta itemprop=\"channelId\" content=\"" dataUsingEncoding:NSUTF8StringEncoding];
NSRange tmp = [html rangeOfData:m_json options:0 range:NSMakeRange(0, html.length)]; NSRange tmp = [html rangeOfData:m_head options:0 range:NSMakeRange(0, html.length)];
if (tmp.location == NSNotFound) { if (tmp.location == NSNotFound) {
NSData *m_head = [@"<meta itemprop=\"channelId\" content=\"" dataUsingEncoding:NSUTF8StringEncoding]; NSData *m_json = [@"\"channelId\":\"" dataUsingEncoding:NSUTF8StringEncoding];
tmp = [html rangeOfData:m_head options:0 range:NSMakeRange(0, html.length)]; tmp = [html rangeOfData:m_json options:0 range:NSMakeRange(0, html.length)];
} }
NSUInteger start = tmp.location + tmp.length; NSUInteger start = tmp.location + tmp.length;
NSUInteger end = html.length - start; NSUInteger end = html.length - start;

View File

@@ -70,7 +70,7 @@
</dict> </dict>
</array> </array>
<key>CFBundleVersion</key> <key>CFBundleVersion</key>
<string>14642</string> <string>14644</string>
<key>LSApplicationCategoryType</key> <key>LSApplicationCategoryType</key>
<string>public.app-category.news</string> <string>public.app-category.news</string>
<key>LSMinimumSystemVersion</key> <key>LSMinimumSystemVersion</key>