1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-12-23 16:28:51 -05:00

Make sure that last-resort 101 number parser does not pick digits from large numbers (e.g. 1234567890 => null instead of 123)

@see https://www.filebot.net/forums/viewtopic.php?f=4&t=4194
This commit is contained in:
Reinhard Pointner 2016-10-05 03:34:42 +08:00
parent 28ac45ab03
commit 106fef7dd9

View File

@ -151,7 +151,7 @@ public class SeasonEpisodeMatcher {
};
// (last-resort) match patterns like 101, 102 (and greedily just grab the first)
Num101_SUBSTRING = new SeasonEpisodePattern(STRICT_SANITY, "([1-9]{1})(\\d{2}).*") {
Num101_SUBSTRING = new SeasonEpisodePattern(STRICT_SANITY, "(?<!\\p{Digit})(\\d{1})(\\d{2})(?!\\p{Digit})(.*)") {
@Override
protected Collection<SxE> process(MatchResult match) {