From 106fef7dd955a2d65a4baec7ccf22731799cd36b Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Wed, 5 Oct 2016 03:34:42 +0800 Subject: [PATCH] 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 --- source/net/filebot/similarity/SeasonEpisodeMatcher.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/net/filebot/similarity/SeasonEpisodeMatcher.java b/source/net/filebot/similarity/SeasonEpisodeMatcher.java index 0e1a3c01..61a2c9fa 100644 --- a/source/net/filebot/similarity/SeasonEpisodeMatcher.java +++ b/source/net/filebot/similarity/SeasonEpisodeMatcher.java @@ -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, "(? process(MatchResult match) {