Modified the regex to read episode number > 100

This commit is contained in:
Damiano Galassi committed 2015-09-18 14:02:35 +02:00
1 parent b321903333
commit 4c63819987
1 file changed
+5 -5
+5 -5
View File
@@ -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