Modified the regex to read episode number > 100
This commit is contained in:
1 parent
b321903333
commit
4c63819987
1 file changed
+5
-5
@@ -39,12 +39,12 @@
|
||||
NSMutableDictionary<NSString *, NSString *> *results = nil;
|
||||
|
||||
// Try with the usual anime filename
|
||||
NSError *error = NULL;
|
||||
__block NSDictionary<NSString *, NSString *> *resultDictionary = nil;
|
||||
NSRegularExpression *regex = [NSRegularExpression
|
||||
regularExpressionWithPattern:@"^\\[(.+)\\](?:(?:\\s|_)+)?([^()]+)(?:(?:\\s|_)+)(?:(?:-\\s|-_|Ep)+)([0-9][0-9]?)"
|
||||
options:NSRegularExpressionCaseInsensitive
|
||||
error:&error];
|
||||
|
||||
NSString *pattern = @"^\\[(.+)\\](?:(?:\\s|_)+)?([^()]+)(?:(?:\\s|_)+)(?:(?:-\\s|-_|Ep)+)([0-9]+)";
|
||||
NSRegularExpression *regex = [NSRegularExpression regularExpressionWithPattern:pattern
|
||||
options:NSRegularExpressionCaseInsensitive
|
||||
error:nil];
|
||||
|
||||
[regex enumerateMatchesInString:filename
|
||||
options:0
|
||||
|
||||
Reference in new issue
Block a user