aboutsummaryrefslogtreecommitdiff
path: root/Emby.Naming/Video/FileStackRule.cs
diff options
context:
space:
mode:
authorBond-009 <bond.009@outlook.com>2023-02-20 16:07:51 +0100
committerGitHub <noreply@github.com>2023-02-20 08:07:51 -0700
commit5b493e14accd6cd8b10b5a14b15e105f73a2724e (patch)
tree196324ef4f51516516945d8e33b7b29ebdf45e1d /Emby.Naming/Video/FileStackRule.cs
parente7a7edbac02f1cc0818b3f3614f55e579733905e (diff)
Improve alternate ordering (#9336)
Diffstat (limited to 'Emby.Naming/Video/FileStackRule.cs')
-rw-r--r--Emby.Naming/Video/FileStackRule.cs2
1 files changed, 1 insertions, 1 deletions
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
/// <param name="isNumerical">Whether the file stack rule uses numerical or alphabetical numbering.</param>
public FileStackRule(string token, bool isNumerical)
{
- _tokenRegex = new Regex(token, RegexOptions.IgnoreCase);
+ _tokenRegex = new Regex(token, RegexOptions.IgnoreCase | RegexOptions.Compiled);
IsNumerical = isNumerical;
}