Make performer regex static

This commit is contained in:
MrTimscampi 2021-08-07 21:58:19 +02:00
parent d82c2e4237
commit 7f52cda03c

View File

@ -28,7 +28,7 @@ namespace MediaBrowser.MediaEncoding.Probing
private readonly char[] _nameDelimiters = { '/', '|', ';', '\\' };
private readonly Regex _performerPattern = new (@"(?<name>.*) \((?<instrument>.*)\)");
private static readonly Regex _performerPattern = new (@"(?<name>.*) \((?<instrument>.*)\)");
private readonly CultureInfo _usCulture = new ("en-US");
private readonly ILogger _logger;