From 5b493e14accd6cd8b10b5a14b15e105f73a2724e Mon Sep 17 00:00:00 2001 From: Bond-009 Date: Mon, 20 Feb 2023 16:07:51 +0100 Subject: Improve alternate ordering (#9336) --- Emby.Naming/Video/FileStackRule.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Emby.Naming/Video/FileStackRule.cs') diff --git a/Emby.Naming/Video/FileStackRule.cs b/Emby.Naming/Video/FileStackRule.cs index 76b487f42..be0f79d33 100644 --- a/Emby.Naming/Video/FileStackRule.cs +++ b/Emby.Naming/Video/FileStackRule.cs @@ -17,7 +17,7 @@ public class FileStackRule /// Whether the file stack rule uses numerical or alphabetical numbering. public FileStackRule(string token, bool isNumerical) { - _tokenRegex = new Regex(token, RegexOptions.IgnoreCase); + _tokenRegex = new Regex(token, RegexOptions.IgnoreCase | RegexOptions.Compiled); IsNumerical = isNumerical; } -- cgit v1.2.3