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;
|
NSMutableDictionary<NSString *, NSString *> *results = nil;
|
||||||
|
|
||||||
// Try with the usual anime filename
|
// Try with the usual anime filename
|
||||||
NSError *error = NULL;
|
|
||||||
__block NSDictionary<NSString *, NSString *> *resultDictionary = nil;
|
__block NSDictionary<NSString *, NSString *> *resultDictionary = nil;
|
||||||
NSRegularExpression *regex = [NSRegularExpression
|
|
||||||
regularExpressionWithPattern:@"^\\[(.+)\\](?:(?:\\s|_)+)?([^()]+)(?:(?:\\s|_)+)(?:(?:-\\s|-_|Ep)+)([0-9][0-9]?)"
|
NSString *pattern = @"^\\[(.+)\\](?:(?:\\s|_)+)?([^()]+)(?:(?:\\s|_)+)(?:(?:-\\s|-_|Ep)+)([0-9]+)";
|
||||||
options:NSRegularExpressionCaseInsensitive
|
NSRegularExpression *regex = [NSRegularExpression regularExpressionWithPattern:pattern
|
||||||
error:&error];
|
options:NSRegularExpressionCaseInsensitive
|
||||||
|
error:nil];
|
||||||
|
|
||||||
[regex enumerateMatchesInString:filename
|
[regex enumerateMatchesInString:filename
|
||||||
options:0
|
options:0
|
||||||
|
|||||||
Reference in new issue
Block a user