From edd161884987a5ea14f19215e5be00b4c89c3d5d Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Thu, 31 Jan 2019 20:46:02 +0700 Subject: [PATCH] Fix regex look-ahead / look-behind issues (esp. to fix 01v2 numeric matching issues) --- source/net/filebot/media/ReleaseInfo.java | 2 +- test/net/filebot/media/MediaDetectionTest.java | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/source/net/filebot/media/ReleaseInfo.java b/source/net/filebot/media/ReleaseInfo.java index a567b2df..b6a8d3be 100644 --- a/source/net/filebot/media/ReleaseInfo.java +++ b/source/net/filebot/media/ReleaseInfo.java @@ -302,7 +302,7 @@ public class ReleaseInfo { public Pattern getVideoFormatPattern(boolean strict) { // pattern matching any video source name String pattern = getProperty("pattern.video.format"); - return strict ? compileWordPattern(pattern) : compile(pattern, CASE_INSENSITIVE); + return strict ? compile("(?