From 14a762b2f1d5e9e6c66f86ab91e6684c6f3ff8ba Mon Sep 17 00:00:00 2001 From: scatter-dev Date: Fri, 28 Jul 2023 16:06:55 -0400 Subject: added test case, fixed regexes --- Emby.Naming/Common/NamingOptions.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Emby.Naming') diff --git a/Emby.Naming/Common/NamingOptions.cs b/Emby.Naming/Common/NamingOptions.cs index 0872024f5..5cf0d9083 100644 --- a/Emby.Naming/Common/NamingOptions.cs +++ b/Emby.Naming/Common/NamingOptions.cs @@ -318,7 +318,7 @@ namespace Emby.Naming.Common new EpisodeExpression(@"[\._ -]()[Ee][Pp]_?([0-9]+)([^\\/]*)$"), // new EpisodeExpression(@"[^\\/]*?()\.?[Ee]([0-9]+)\.([^\\/]*)$"), - new EpisodeExpression("(?[0-9]{4})[\\.-_ ](?[0-9]{2})[\\.-_ ](?[0-9]{2})", true) + new EpisodeExpression(@"(?[0-9]{4})[\.\-_ ](?[0-9]{2})[\.\-_ ](?[0-9]{2})", true) { DateTimeFormats = new[] { @@ -328,7 +328,7 @@ namespace Emby.Naming.Common "yyyy MM dd" } }, - new EpisodeExpression(@"(?[0-9]{2})[.-_ ](?[0-9]{2})[.-_ ](?[0-9]{4})", true) + new EpisodeExpression(@"(?[0-9]{2})[\.\-_ ](?[0-9]{2})[\.\-_ ](?[0-9]{4})", true) { DateTimeFormats = new[] { -- cgit v1.2.3