diff options
| author | Shadowghost <Ghost_of_Stone@web.de> | 2023-03-03 10:42:24 +0100 |
|---|---|---|
| committer | Shadowghost <Ghost_of_Stone@web.de> | 2023-03-03 10:42:24 +0100 |
| commit | 80b8661008f271efad595e75de7b0c50971b131b (patch) | |
| tree | b756d3993b4482fbf4ef91102be322cc542596ec /Emby.Naming/AudioBook/AudioBookFilePathParser.cs | |
| parent | 7af6694594cfc71644b336a2bba459c2f439369b (diff) | |
| parent | 0de37e2ac2fcde85171336ac70d721060012fd78 (diff) | |
Merge branch 'master' into network-rewrite
Diffstat (limited to 'Emby.Naming/AudioBook/AudioBookFilePathParser.cs')
| -rw-r--r-- | Emby.Naming/AudioBook/AudioBookFilePathParser.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Emby.Naming/AudioBook/AudioBookFilePathParser.cs b/Emby.Naming/AudioBook/AudioBookFilePathParser.cs index 219599d56..75fdedfea 100644 --- a/Emby.Naming/AudioBook/AudioBookFilePathParser.cs +++ b/Emby.Naming/AudioBook/AudioBookFilePathParser.cs @@ -32,7 +32,7 @@ namespace Emby.Naming.AudioBook var fileName = Path.GetFileNameWithoutExtension(path); foreach (var expression in _options.AudioBookPartsExpressions) { - var match = new Regex(expression, RegexOptions.IgnoreCase).Match(fileName); + var match = Regex.Match(fileName, expression, RegexOptions.IgnoreCase); if (match.Success) { if (!result.ChapterNumber.HasValue) |
